use of hudson.tools.ToolPropertyDescriptor in project nodejs-plugin by jenkinsci.
the class NodeJSInstallationTest method verify.
private void verify() throws Exception {
NodeJSInstallation[] l = r.get(DescriptorImpl.class).getInstallations();
assertEquals(1, l.length);
r.assertEqualBeans(l[0], new NodeJSInstallation("myNode", "/tmp/foo", JenkinsRule.NO_PROPERTIES), "name,home");
// by default we should get the auto installer
DescribableList<ToolProperty<?>, ToolPropertyDescriptor> props = l[0].getProperties();
assertEquals(1, props.size());
InstallSourceProperty isp = props.get(InstallSourceProperty.class);
assertEquals(1, isp.installers.size());
assertNotNull(isp.installers.get(NodeJSInstaller.class));
}
Aggregations