use of io.jenkins.plugins.casc.impl.configurators.nonnull.NonnullParameterConstructor in project configuration-as-code-plugin by jenkinsci.
the class DataBoundConfiguratorTest method nonnullConstructorParameter.
@Test
public void nonnullConstructorParameter() throws Exception {
Mapping config = new Mapping();
ConfiguratorRegistry registry = ConfiguratorRegistry.get();
final NonnullParameterConstructor configured = (NonnullParameterConstructor) registry.lookupOrFail(NonnullParameterConstructor.class).configure(config, new ConfigurationContext(registry));
assertEquals(0, configured.getStrings().size());
}
Aggregations