@Test public void testLoadInitialMap() throws Exception { InputStream geocognitionStream = GeocognitionElement.class.getResourceAsStream(GeocognitionTest.STARTUP_GEOCOGNITION_XML); gc.read(geocognitionStream); assertNotNull(gc.getGeocognitionElement(GeocognitionView.FIRST_MAP)); }
@Ignore @Test public void testLoadAndCheckInitialGeocognition() throws Exception { InputStream geocognitionStream = GeocognitionElement.class.getResourceAsStream(GeocognitionTest.STARTUP_GEOCOGNITION_XML); gc.read(geocognitionStream); GeocognitionElement[] elems = gc.getElements( new GeocognitionFilter() { @Override public boolean accept(GeocognitionElement element) { return true; } }); for (GeocognitionElement elem : elems) { assertNotNull(elem.getObject()); } }