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