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