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