Search in sources :

Example 11 with DescriptorImpl

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()));
}
Also used : FormValidation(hudson.util.FormValidation) DescriptorImpl(jenkins.plugins.nodejs.configfiles.NPMRegistry.DescriptorImpl) Test(org.junit.Test)

Aggregations

FormValidation (hudson.util.FormValidation)11 DescriptorImpl (jenkins.plugins.nodejs.configfiles.NPMRegistry.DescriptorImpl)11 Test (org.junit.Test)11 FreeStyleProject (hudson.model.FreeStyleProject)3 Item (hudson.model.Item)3 Permission (hudson.security.Permission)3 Credentials (com.cloudbees.plugins.credentials.Credentials)1 Domain (com.cloudbees.plugins.credentials.domains.Domain)1 UsernamePasswordCredentialsImpl (com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl)1 HashMap (java.util.HashMap)1 List (java.util.List)1