@Test @DisplayName("is not equal to a null object") void notEqualToNull() { final RecentPresentation presentation = new RecentPresentation("presentation1.sfx", null); assertFalse(presentation.equals(null)); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; final RecentPresentation that = (RecentPresentation) o; return getNormalizedPath().equals(that.getNormalizedPath()); }
RecentPresentation extends File implements Comparable<File> { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; final RecentPresentation that = (RecentPresentation) o; return getNormalizedPath().equals(that.getNormalizedPath()); } }
RecentPresentation extends File implements Comparable<File> { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; final RecentPresentation that = (RecentPresentation) o; return getNormalizedPath().equals(that.getNormalizedPath()); } RecentPresentation(final String path, final LocalDateTime openedDateTime); }
RecentPresentation extends File implements Comparable<File> { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; final RecentPresentation that = (RecentPresentation) o; return getNormalizedPath().equals(that.getNormalizedPath()); } RecentPresentation(final String path, final LocalDateTime openedDateTime); LocalDateTime getOpenedDateTime(); void setOpenedDateTime(LocalDateTime openedDateTime); String getId(); String getNormalizedPath(); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(File o); }
RecentPresentation extends File implements Comparable<File> { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; final RecentPresentation that = (RecentPresentation) o; return getNormalizedPath().equals(that.getNormalizedPath()); } RecentPresentation(final String path, final LocalDateTime openedDateTime); LocalDateTime getOpenedDateTime(); void setOpenedDateTime(LocalDateTime openedDateTime); String getId(); String getNormalizedPath(); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(File o);  }