コード例 #1
0
 @Test
 public void testNotEqualsObjectObject() {
   Object obj1 = new Object();
   assertFalse(cFunction.notEquals(obj1, obj1));
   assertTrue(cFunction.notEquals(obj1, null));
   assertTrue(cFunction.notEquals(null, obj1));
   assertTrue(cFunction.notEquals(new Object(), new Object()));
 }
コード例 #2
0
 @Test
 public void testNotEqualsEObjectEObject() {
   EObject obj1 = EcoreFactory.eINSTANCE.createEObject();
   assertFalse(cFunction.notEquals(obj1, obj1));
   assertTrue(cFunction.notEquals(obj1, null));
   assertTrue(cFunction.notEquals(null, obj1));
   assertFalse(
       cFunction.notEquals(
           EcoreFactory.eINSTANCE.createEObject(), EcoreFactory.eINSTANCE.createEObject()));
 }
コード例 #3
0
 @Test
 public void testNotEqualsIntegerInteger() {
   assertTrue(cFunction.notEquals(1, 2));
   assertFalse(cFunction.notEquals(1, 1));
 }
コード例 #4
0
 @Test
 public void testNotEqualsStringString() {
   assertTrue(cFunction.notEquals("Hans", "Wurst"));
   assertFalse(cFunction.notEquals("Hans", "Hans"));
 }
コード例 #5
0
 @Test
 public void testNotEqualsBooleanBoolean() {
   assertTrue(cFunction.notEquals(true, false));
   assertFalse(cFunction.notEquals(true, true));
 }
コード例 #6
0
 @Test
 public void testNotEqualsDoubleLong() {
   assertTrue(cFunction.notEquals(1.01, 1L));
   assertFalse(cFunction.notEquals(1.0, 1L));
 }
コード例 #7
0
 @Test
 public void testNotEqualsDoubleFloat() {
   assertTrue(cFunction.notEquals(1.01, 1.02F));
   assertFalse(cFunction.notEquals(1.5, 1.5F));
 }
コード例 #8
0
 @Test
 public void testNotEqualsLongFloat() {
   assertTrue(cFunction.notEquals(1L, 1.1F));
   assertFalse(cFunction.notEquals(1L, 1.0F));
 }
コード例 #9
0
 @Test
 public void testNotEqualsLongLong() {
   assertTrue(cFunction.notEquals(1L, 2L));
   assertFalse(cFunction.notEquals(1L, 1L));
 }
コード例 #10
0
 @Test
 public void testNotEqualsFloatDouble() {
   assertTrue(cFunction.notEquals(1.01F, 1.02));
   assertFalse(cFunction.notEquals(1.5F, 1.5));
 }
コード例 #11
0
 @Test
 public void testNotEqualsFloatInteger() {
   assertTrue(cFunction.notEquals(1.1F, 1));
   assertFalse(cFunction.notEquals(1.0F, 1));
 }
コード例 #12
0
 @Test
 public void testNotEqualsIntegerLong() {
   assertTrue(cFunction.notEquals(1, 2L));
   assertFalse(cFunction.notEquals(1, 1L));
 }
コード例 #13
0
 @Test
 public void testNotEqualsLongDouble() {
   assertTrue(cFunction.notEquals(1L, 1.1D));
   assertFalse(cFunction.notEquals(1L, 1.0D));
 }
コード例 #14
0
 @Test
 public void testNotEqualsFloatFloat() {
   assertTrue(cFunction.notEquals(1.2F, 1.3F));
   assertFalse(cFunction.notEquals(1.1F, 1.1F));
 }
コード例 #15
0
 @Test
 public void testNotEqualsFloatLong() {
   assertFalse(cFunction.notEquals(1.0F, 1L));
   assertTrue(cFunction.notEquals(1.5F, 1L));
 }
コード例 #16
0
 @Test
 public void testNotEqualsDoubleDouble() {
   assertTrue(cFunction.notEquals(1.2, 1.3));
   assertFalse(cFunction.notEquals(1.2, 1.2));
 }
コード例 #17
0
 @Test
 public void testNotEqualsDoubleInteger() {
   assertTrue(cFunction.notEquals(1.01, 1));
   assertFalse(cFunction.notEquals(1.0, 1));
 }
コード例 #18
0
 @Test
 public void testNotEqualsIntegerFloat() {
   assertTrue(cFunction.notEquals(1, 1.1F));
   assertFalse(cFunction.notEquals(1, 1.0F));
 }
コード例 #19
0
 @Test
 public void testNotEqualsIntegerDouble() {
   assertTrue(cFunction.notEquals(1, 1.1));
   assertFalse(cFunction.notEquals(1, 1.0));
 }