@Test public void hashCodeShouldNotBeEqual() { StaticPage staticPage1 = new StaticPage("admin", "html content", true); StaticPage staticPage2 = new StaticPage("contact", "html content 2", false); assertNotSame(staticPage1.hashCode(), staticPage2.hashCode()); }
@Test public void hashCodeShouldBeEqual() { StaticPage staticPage1 = new StaticPage("admin", "html content", true); assertEquals(staticPage1.hashCode(), staticPage1.hashCode()); }