DockerComputerSSHLauncher extends DockerComputerLauncher { public DockerSSHConnector getSshConnector() { return sshConnector; } @DataBoundConstructor  DockerComputerSSHLauncher(DockerSSHConnector sshConnector); DockerSSHConnector getSshConnector(); void setSshConnector(DockerSSHConnector sshConnector); @CheckForNull String getDockerNetwork(); @DataBoundSetter void setDockerNetwork(String dockerNetwork); DockerComputerLauncher getPreparedLauncher(String cloudId, DockerSlaveTemplate dockerSlaveTemplate,
                                                      InspectContainerResponse inspect); @Override void appendContainerConfig(DockerSlaveTemplate dockerSlaveTemplate, CreateContainerCmd createCmd); @Override boolean waitUp(String cloudId, DockerSlaveTemplate dockerSlaveTemplate,
                          InspectContainerResponse containerInspect); HostAndPort getHostAndPort(String cloudId, InspectContainerResponse ir);  }
@LocalData @Test public void migration() { Cloud cl = jenkinsRule.getInstance().getCloud("cloudName"); assertThat(cl, notNullValue()); DockerCloud cloud = (DockerCloud) cl; assertThat(cloud, notNullValue()); DockerSlaveTemplate template = cloud.getTemplateById("fb5f32a8-bfdd-4f00-8df8-fcf3cf14ab63"); assertThat(template, notNullValue()); DockerComputerLauncher l = template.getLauncher(); assertThat(l, instanceOf(DockerComputerSSHLauncher.class)); DockerComputerSSHLauncher sshLauncher = (DockerComputerSSHLauncher) l; DockerSSHConnector dockerSSHConnector = sshLauncher.getSshConnector(); assertThat(dockerSSHConnector, notNullValue()); assertThat(dockerSSHConnector.getSshHostKeyVerificationStrategy(), notNullValue()); assertThat(dockerSSHConnector.getSshHostKeyVerificationStrategy(), instanceOf(KnownHostsFileKeyVerificationStrategy.class)); assertThat(dockerSSHConnector.getSuffixStartSlaveCmd(), is("suffixStartSlave")); assertThat(dockerSSHConnector.getPrefixStartSlaveCmd(), is("prefixStartSlave")); }