Skip to content
Prev Previous commit
Next Next commit
Remove anUnconfiguredCommandSerializesToEmptyJson test case
  • Loading branch information
bsideup committed Nov 20, 2019
commit 1171555a6b2454ee584f2aa68a34682d2b126ba6
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.github.dockerjava.api.command.CreateContainerResponse;
import com.github.dockerjava.api.command.InspectContainerResponse;
import com.github.dockerjava.api.command.StartContainerCmd;
import com.github.dockerjava.api.exception.DockerException;
import com.github.dockerjava.api.exception.InternalServerErrorException;
import com.github.dockerjava.api.exception.NotFoundException;
Expand All @@ -16,7 +15,6 @@
import com.github.dockerjava.api.model.Volume;
import com.github.dockerjava.api.model.VolumesFrom;
import com.github.dockerjava.core.command.WaitContainerResultCallback;
import com.github.dockerjava.test.serdes.JSONTestHelper;
import net.jcip.annotations.NotThreadSafe;
import org.junit.Test;
import org.slf4j.Logger;
Expand Down Expand Up @@ -570,10 +568,4 @@ public void existingHostConfigIsPreservedByBlankStartCmd() throws DockerExceptio
assertThat(inspectContainerResponse.getHostConfig().getDns(), is(notNullValue()));
assertThat(Arrays.asList(inspectContainerResponse.getHostConfig().getDns()), contains(dnsServer));
}

@Test
public void anUnconfiguredCommandSerializesToEmptyJson() throws Exception {
StartContainerCmd command = dockerRule.getClient().startContainerCmd("");
assertThat(JSONTestHelper.getMapper().writeValueAsString(command), is("{}"));
}
}