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