use of org.openstreetmap.atlas.checks.base.checks.PierTestCheck in project atlas-checks by osmlab.
the class PierTest method testPierOverrideSkip.
/**
* Test the pier override value that will allow piers to be processed.
*/
@Test
public void testPierOverrideSkip() {
final String configSource = "{\"PierTestCheck.accept.piers\": true}";
final PierTestCheck check = new PierTestCheck(ConfigurationResolver.inlineConfiguration(configSource));
final Set<CheckFlag> flags = Iterables.stream(check.flags(setup.getAtlas())).collectToSet();
Assert.assertEquals(3, flags.size());
}
use of org.openstreetmap.atlas.checks.base.checks.PierTestCheck in project atlas-checks by osmlab.
the class PierTest method testPierSkip.
/**
* Test default behavior to make sure the pier override value when explicitly set to false
* maintains the behavior of not allowing piers to be processed
*/
@Test
public void testPierSkip() {
final String configSource = "{\"PierTestCheck.accept.piers\": false}";
final PierTestCheck check = new PierTestCheck(ConfigurationResolver.inlineConfiguration(configSource));
final Set<CheckFlag> flags = Iterables.stream(check.flags(setup.getAtlas())).collectToSet();
Assert.assertEquals(2, flags.size());
flags.forEach(flag -> Assert.assertNotEquals(100, flag.getIdentifier()));
}
Aggregations