use of com.cloudbees.jenkins.plugins.customtools.CustomTool.DescriptorImpl in project configuration-as-code-plugin by jenkinsci.
the class CustomToolsTest method configure_custom_tools.
@Test
@Issue("#97")
@Ignore
@ConfiguredWithCode(value = "CustomToolsTest.yml")
public void configure_custom_tools() {
DescriptorImpl descriptor = (DescriptorImpl) j.jenkins.getDescriptorOrDie(CustomTool.class);
assertEquals(1, descriptor.getInstallations().length);
final CustomTool customTool = descriptor.getInstallations()[0];
final InstallSourceProperty source = customTool.getProperties().get(InstallSourceProperty.class);
assertNotNull(source);
final CommandInstaller installer = source.installers.get(CommandInstaller.class);
assertNotNull(installer);
assertEquals("/bin/my-tool", installer.getToolHome());
}
Aggregations