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