use of org.jsonschema2pojo.NoopAnnotator in project jsonschema2pojo by joelittlejohn.
the class MinLengthMaxLengthRuleTest method setUp.
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
rule = new MinLengthMaxLengthRule(new RuleFactory(config, new NoopAnnotator(), new SchemaStore()));
when(config.isUseJakartaValidation()).thenReturn(useJakartaValidation);
}
use of org.jsonschema2pojo.NoopAnnotator in project jsonschema2pojo by joelittlejohn.
the class PatternRuleTest method setUp.
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
rule = new PatternRule(new RuleFactory(config, new NoopAnnotator(), new SchemaStore()));
when(config.isUseJakartaValidation()).thenReturn(useJakartaValidation);
}
use of org.jsonschema2pojo.NoopAnnotator in project jsonschema2pojo by joelittlejohn.
the class FormatRuleJodaTest method setupConfig.
@Before
public void setupConfig() {
when(config.isUseJodaLocalTimes()).thenReturn(true);
when(config.isUseJodaLocalDates()).thenReturn(true);
when(config.isUseJodaDates()).thenReturn(true);
rule = new FormatRule(new RuleFactory(config, new NoopAnnotator(), new SchemaStore()));
}
use of org.jsonschema2pojo.NoopAnnotator in project jsonschema2pojo by joelittlejohn.
the class DigitsRuleTest method setUp.
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
rule = new DigitsRule(new RuleFactory(config, new NoopAnnotator(), new SchemaStore()));
when(config.isUseJakartaValidation()).thenReturn(useJakartaValidation);
}
use of org.jsonschema2pojo.NoopAnnotator in project jsonschema2pojo by joelittlejohn.
the class MinItemsMaxItemsRuleTest method setUp.
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
rule = new MinItemsMaxItemsRule(new RuleFactory(config, new NoopAnnotator(), new SchemaStore()));
when(config.isUseJakartaValidation()).thenReturn(useJakartaValidation);
}
Aggregations