use of org.eclipse.che.plugin.docker.client.params.CreateContainerParams in project che by eclipse.
the class DockerConnectorTest method shouldThrowDockerExceptionWhileCreatingContainerIfResponseCodeIsNotSuccess.
@Test(expectedExceptions = DockerException.class, expectedExceptionsMessageRegExp = EXCEPTION_ERROR_MESSAGE)
public void shouldThrowDockerExceptionWhileCreatingContainerIfResponseCodeIsNotSuccess() throws IOException {
CreateContainerParams createContainerParams = CreateContainerParams.create(new ContainerConfig());
when(dockerResponse.getStatus()).thenReturn(RESPONSE_ERROR_CODE);
dockerConnector.createContainer(createContainerParams);
verify(dockerResponse).getStatus();
}
Aggregations