use of jenkins.plugins.nodejs.configfiles.NPMRegistry.DescriptorImpl in project nodejs-plugin by jenkinsci.
the class NPMRegistryValidatorTest method test_empty_scopes.
@Test
public void test_empty_scopes() throws Exception {
DescriptorImpl descriptor = new DescriptorImpl();
FormValidation result = descriptor.doCheckScopes(true, "");
assertThat(result.kind, is(Kind.ERROR));
assertThat(result.getMessage(), is(Messages.NPMRegistry_DescriptorImpl_emptyScopes()));
}
Aggregations