@Test
public void testRefLocations() throws Exception
{
LOG.info("<-- start of test-case");
handleRefLocations();
missing.forEach((identifier) -> { LOG.debug("missing: {}", identifier); });
incomplete.entrySet().forEach((e) -> { LOG.debug("incomplete: {}", e.getKey()); });
errors.forEach((message) -> { LOG.debug("error: {}", message); });
warnings.forEach((message) -> { LOG.debug("warning: {}", message); });
info.forEach((message) -> { LOG.debug("info: {}", message); });
handled.entrySet().forEach((e) -> { LOG.debug("handled: {}", e.getKey()); });
assertEquals("wrong number of errors", 0, errors.size());
assertEquals("wrong number of warnings", 0, warnings.size());
assertEquals("wrong number of info", 0, info.size());
assertEquals("wrong number of handled nodes", 9, handled.size());
assertEquals("wrong number of missing nodes", 0, missing.size());
assertEquals("wrong number of incomplete nodes", 0, incomplete.size());
assertTrue(location_1 + " was not handled", handled.containsKey(location_1));
assertTrue(location_2 + " was not handled", handled.containsKey(location_2));
assertTrue(location_4 + " was not handled", handled.containsKey(location_4));
assertTrue(location_5 + " was not handled", handled.containsKey(location_5));
assertTrue(location_6 + " was not handled", handled.containsKey(location_6));
assertTrue(location_7 + " was not handled", handled.containsKey(location_7));
assertTrue(location_8 + " was not handled", handled.containsKey(location_8));
assertTrue(location_9 + " was not handled", handled.containsKey(location_9));
assertTrue(location_10 + " was not handled", handled.containsKey(location_10));
checkLocations();
}