ConstraintsModifierConfig { public static ConstraintsModifierConfig load() { return load(PlatformConfig.defaultConfig()); } ConstraintsModifierConfig(Set<Country> countries, Set<LimitViolationType> violationsTypes); static ConstraintsModifierConfig load(); static ConstraintsModifierConfig load(PlatformConfig platformConfig); Set<Country> getCountries(); Set<LimitViolationType> getViolationsTypes(); boolean isInAreaOfInterest(LimitViolation violation, Network network); @Override String toString(); static final Set<LimitViolationType> DEFAULT_VIOLATION_TYPES; static final Set<Country> DEFAULT_COUNTRIES; }
@Test public void testNoConfig() throws Exception { ConstraintsModifierConfig config = ConstraintsModifierConfig.load(platformConfig); checkValues(config, ConstraintsModifierConfig.DEFAULT_COUNTRIES, ConstraintsModifierConfig.DEFAULT_VIOLATION_TYPES); }