Example #1
0
  public void testPrimitive() {
    assertEquals(BLUE_STR, blue.getName());
    assertTrue(blue.contains(blue));

    Marker blue2 = factory.getMarker(BLUE_STR);
    assertEquals(BLUE_STR, blue2.getName());
    assertEquals(blue, blue2);
    assertTrue(blue.contains(blue2));
    assertTrue(blue2.contains(blue));
  }
Example #2
0
 public void testMultiCompositeByName() {
   assertTrue(multiComp.contains(COMP_STR));
   assertTrue(multiComp.contains(BLUE_STR));
   assertTrue(multiComp.contains(GREEN_STR));
   assertFalse(multiComp.contains(RED_STR));
 }
Example #3
0
 public void testMultiComposite() {
   assertTrue(multiComp.contains(comp));
   assertTrue(multiComp.contains(blue));
   assertTrue(multiComp.contains(green));
   assertFalse(multiComp.contains(red));
 }
Example #4
0
 public void testCompositeByName() {
   assertTrue(comp.contains(COMP_STR));
   assertTrue(comp.contains(BLUE_STR));
 }
Example #5
0
 public void testComposite() {
   assertTrue(comp.contains(comp));
   assertTrue(comp.contains(blue));
 }
Example #6
0
 public void testPrimitiveByName() {
   assertTrue(blue.contains(BLUE_STR));
 }