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