Example #1
0
 @Test
 public void isSubtypeOf_subtype() {
   assertTrue(BooleanTypeValue.getInstance().isSubtypeOf(TypeTypeValue.getInstance()));
 }
Example #2
0
 @Test
 public void isSubtypeOf_false() {
   assertFalse(BooleanTypeValue.getInstance().isSubtypeOf(FacadeTypeValue.getInstance()));
 }
Example #3
0
 private TypeValue getInstance() {
   // TypeValue is abstract so we use a simple implementation.
   return BooleanTypeValue.getInstance();
 }