use of org.eclipse.che.plugin.docker.client.json.network.ConnectContainer in project che by eclipse.
the class DockerConnectorTest method shouldBeAbleToConnectContainerToNetwork.
@Test
public void shouldBeAbleToConnectContainerToNetwork() throws Exception {
// given
String netId = "net_id";
String containerId = "container_id";
doNothing().when(dockerConnector).connectContainerToNetwork(any(ConnectContainerToNetworkParams.class));
// when
dockerConnector.connectContainerToNetwork(netId, containerId);
// then
verify(dockerConnector).connectContainerToNetwork(ConnectContainerToNetworkParams.create(netId, new ConnectContainer().withContainer(containerId)));
}
Aggregations