@Test public void testClose() throws Exception { Mockito.verifyZeroInteractions( this.dockerClient ); this.configurator.close(); Mockito.verify( this.dockerClient, Mockito.times( 1 )).close(); Mockito.reset( this.dockerClient ); this.configurator.dockerClient = null; this.configurator.close(); Mockito.verifyNoMoreInteractions( this.dockerClient ); }
@Override public void close() throws IOException { if( this.dockerClient != null ) this.dockerClient.close(); }
DockerMachineConfigurator implements MachineConfigurator { @Override public void close() throws IOException { if( this.dockerClient != null ) this.dockerClient.close(); } }
DockerMachineConfigurator implements MachineConfigurator { @Override public void close() throws IOException { if( this.dockerClient != null ) this.dockerClient.close(); } DockerMachineConfigurator(
			TargetHandlerParameters parameters,
			String machineId,
			File userDataVolume,
			Map<String,File> containerIdToVolume ); }
DockerMachineConfigurator implements MachineConfigurator { @Override public void close() throws IOException { if( this.dockerClient != null ) this.dockerClient.close(); } DockerMachineConfigurator(
			TargetHandlerParameters parameters,
			String machineId,
			File userDataVolume,
			Map<String,File> containerIdToVolume ); TargetHandlerParameters getParameters(); @Override Instance getScopedInstance(); @Override void close(); @Override boolean configure(); }
DockerMachineConfigurator implements MachineConfigurator { @Override public void close() throws IOException { if( this.dockerClient != null ) this.dockerClient.close(); } DockerMachineConfigurator(
			TargetHandlerParameters parameters,
			String machineId,
			File userDataVolume,
			Map<String,File> containerIdToVolume ); TargetHandlerParameters getParameters(); @Override Instance getScopedInstance(); @Override void close(); @Override boolean configure();  }