Example #1
0
 @Test
 public void compatibility() {
   assertTrue(Uint7.getInstance().isCompatible(Uint7.getInstance()));
   assertFalse(
       Uint7.getInstance()
           .isCompatible(EdmPrimitiveTypeFactory.getInstance(EdmPrimitiveTypeKind.String)));
 }
 @Test
 public void compatibility() {
   assertTrue(instance.isCompatible(Uint7.getInstance()));
   assertTrue(
       instance.isCompatible(
           EdmPrimitiveTypeFactory.getNonGeoInstance(EdmPrimitiveTypeKind.Byte)));
   assertTrue(
       instance.isCompatible(
           EdmPrimitiveTypeFactory.getNonGeoInstance(EdmPrimitiveTypeKind.SByte)));
   assertTrue(
       instance.isCompatible(
           EdmPrimitiveTypeFactory.getNonGeoInstance(EdmPrimitiveTypeKind.Int16)));
   assertTrue(
       instance.isCompatible(
           EdmPrimitiveTypeFactory.getNonGeoInstance(EdmPrimitiveTypeKind.Int32)));
   assertTrue(
       instance.isCompatible(
           EdmPrimitiveTypeFactory.getNonGeoInstance(EdmPrimitiveTypeKind.Int64)));
   assertTrue(
       instance.isCompatible(
           EdmPrimitiveTypeFactory.getNonGeoInstance(EdmPrimitiveTypeKind.Single)));
 }