Esempio n. 1
0
 @Test
 public void isNotEqualToNull() {
   TestClass testClass = new TestClass(DummyClass.class);
   assertFalse(testClass.equals(null));
 }
Esempio n. 2
0
 @Test
 public void isEqualToTestClassThatWrapsNoJavaClassToo() {
   TestClass testClass = new TestClass(null);
   TestClass testClassThatWrapsNoJavaClassToo = new TestClass(null);
   assertTrue(testClass.equals(testClassThatWrapsNoJavaClassToo));
 }
Esempio n. 3
0
 @Test
 public void isNotEqualToTestClassThatWrapsADifferentJavaClass() {
   TestClass testClass = new TestClass(DummyClass.class);
   TestClass testClassThatWrapsADifferentJavaClass = new TestClass(AnotherDummyClass.class);
   assertFalse(testClass.equals(testClassThatWrapsADifferentJavaClass));
 }
Esempio n. 4
0
 @Test
 public void isEqualToTestClassThatWrapsSameJavaClass() {
   TestClass testClass = new TestClass(DummyClass.class);
   TestClass testClassThatWrapsSameJavaClass = new TestClass(DummyClass.class);
   assertTrue(testClass.equals(testClassThatWrapsSameJavaClass));
 }