@Test public void equalsTest() throws FileNotFoundException { ExternalRenderTheme externalRenderTheme1 = new ExternalRenderTheme(new File(EMPTY_RENDER_THEME_PATH)); ExternalRenderTheme externalRenderTheme2 = new ExternalRenderTheme(new File(EMPTY_RENDER_THEME_PATH)); ExternalRenderTheme externalRenderTheme3 = new ExternalRenderTheme(new File(RENDER_THEME_PATH)); equalsTest(externalRenderTheme1, externalRenderTheme2); Assert.assertFalse(externalRenderTheme1.equals(externalRenderTheme3)); Assert.assertFalse(externalRenderTheme3.equals(externalRenderTheme1)); Assert.assertFalse(externalRenderTheme1.equals(new Object())); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } else if (!(obj instanceof ExternalRenderTheme)) { return false; } ExternalRenderTheme other = (ExternalRenderTheme) obj; if (this.lastModifiedTime != other.lastModifiedTime) { return false; } if (this.renderThemeFile == null) { if (other.renderThemeFile != null) { return false; } } else if (!this.renderThemeFile.equals(other.renderThemeFile)) { return false; } return true; }
ExternalRenderTheme implements XmlRenderTheme { @Override public boolean equals(Object obj) { if (this == obj) { return true; } else if (!(obj instanceof ExternalRenderTheme)) { return false; } ExternalRenderTheme other = (ExternalRenderTheme) obj; if (this.lastModifiedTime != other.lastModifiedTime) { return false; } if (this.renderThemeFile == null) { if (other.renderThemeFile != null) { return false; } } else if (!this.renderThemeFile.equals(other.renderThemeFile)) { return false; } return true; } }
ExternalRenderTheme implements XmlRenderTheme { @Override public boolean equals(Object obj) { if (this == obj) { return true; } else if (!(obj instanceof ExternalRenderTheme)) { return false; } ExternalRenderTheme other = (ExternalRenderTheme) obj; if (this.lastModifiedTime != other.lastModifiedTime) { return false; } if (this.renderThemeFile == null) { if (other.renderThemeFile != null) { return false; } } else if (!this.renderThemeFile.equals(other.renderThemeFile)) { return false; } return true; } ExternalRenderTheme(File renderThemeFile); }
ExternalRenderTheme implements XmlRenderTheme { @Override public boolean equals(Object obj) { if (this == obj) { return true; } else if (!(obj instanceof ExternalRenderTheme)) { return false; } ExternalRenderTheme other = (ExternalRenderTheme) obj; if (this.lastModifiedTime != other.lastModifiedTime) { return false; } if (this.renderThemeFile == null) { if (other.renderThemeFile != null) { return false; } } else if (!this.renderThemeFile.equals(other.renderThemeFile)) { return false; } return true; } ExternalRenderTheme(File renderThemeFile); @Override boolean equals(Object obj); @Override String getRelativePathPrefix(); @Override InputStream getRenderThemeAsStream(); @Override int hashCode(); }
ExternalRenderTheme implements XmlRenderTheme { @Override public boolean equals(Object obj) { if (this == obj) { return true; } else if (!(obj instanceof ExternalRenderTheme)) { return false; } ExternalRenderTheme other = (ExternalRenderTheme) obj; if (this.lastModifiedTime != other.lastModifiedTime) { return false; } if (this.renderThemeFile == null) { if (other.renderThemeFile != null) { return false; } } else if (!this.renderThemeFile.equals(other.renderThemeFile)) { return false; } return true; } ExternalRenderTheme(File renderThemeFile); @Override boolean equals(Object obj); @Override String getRelativePathPrefix(); @Override InputStream getRenderThemeAsStream(); @Override int hashCode();  }