use of hudson.tools.ToolProperty in project nodejs-plugin by jenkinsci.
the class SimpleNodeJSCommandInterpreterTest method setUp.
@Before
public void setUp() {
installation = new NodeJSInstallation("11.0.0", "", Collections.<ToolProperty<?>>emptyList());
interpreter = new NodeJSCommandInterpreter(COMMAND, installation.getName(), null);
descriptor = new NodeJSCommandInterpreter.NodeJsDescriptor();
}
use of hudson.tools.ToolProperty 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