예제 #1
0
 @Test
 public void testLoadInitialMap() throws Exception {
   InputStream geocognitionStream =
       GeocognitionElement.class.getResourceAsStream(GeocognitionTest.STARTUP_GEOCOGNITION_XML);
   gc.read(geocognitionStream);
   assertNotNull(gc.getGeocognitionElement(GeocognitionView.FIRST_MAP));
 }
예제 #2
0
  @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());
    }
  }