use of org.jenkinsci.plugins.casc.Configurator in project configuration-as-code-plugin by jenkinsci.
the class RoleStrategyTest method shouldReturnCustomConfigurator.
@Test
public void shouldReturnCustomConfigurator() {
Configurator c = Configurator.lookup(RoleBasedAuthorizationStrategy.class);
assertNotNull("Failed to find configurator for RoleBasedAuthorizationStrategy", c);
assertEquals("Retrieved wrong configurator", RoleBasedAuthorizationStrategyConfigurator.class, c.getClass());
}
use of org.jenkinsci.plugins.casc.Configurator in project configuration-as-code-plugin by jenkinsci.
the class RoleStrategyTest method shouldReturnCustomConfiguratorForBaseType.
@Test
@Issue("Issue #59")
public void shouldReturnCustomConfiguratorForBaseType() {
Configurator c = Configurator.lookupForBaseType(AuthorizationStrategy.class, "roleStrategy");
assertNotNull("Failed to find configurator for RoleBasedAuthorizationStrategy", c);
assertEquals("Retrieved wrong configurator", RoleBasedAuthorizationStrategyConfigurator.class, c.getClass());
Configurator.lookup(RoleBasedAuthorizationStrategy.class);
}
Aggregations