@Test public void testEquals() { assertEquals(LoggingConfiguration.empty(), new LoggingConfiguration()); assertEquals(new LoggingConfiguration(true), new LoggingConfiguration(true)); assertEquals(new LoggingConfiguration(false), new LoggingConfiguration(false)); assertNotEquals(new LoggingConfiguration(true), new LoggingConfiguration(false)); assertNotEquals(new LoggingConfiguration(true), new LoggingConfiguration(true, "a")); assertNotEquals(new LoggingConfiguration(true, "b"), new LoggingConfiguration(true, "a")); }
@Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LoggingConfiguration that = (LoggingConfiguration) o; if(enabled != that.enabled) { return false; } if(!Objects.equals(loggingTarget, that.loggingTarget)) { return false; } return true; }
LoggingConfiguration { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LoggingConfiguration that = (LoggingConfiguration) o; if(enabled != that.enabled) { return false; } if(!Objects.equals(loggingTarget, that.loggingTarget)) { return false; } return true; } }
LoggingConfiguration { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LoggingConfiguration that = (LoggingConfiguration) o; if(enabled != that.enabled) { return false; } if(!Objects.equals(loggingTarget, that.loggingTarget)) { return false; } return true; } LoggingConfiguration();  LoggingConfiguration(final boolean enabled);  LoggingConfiguration(final boolean enabled, final String loggingTarget); }
LoggingConfiguration { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LoggingConfiguration that = (LoggingConfiguration) o; if(enabled != that.enabled) { return false; } if(!Objects.equals(loggingTarget, that.loggingTarget)) { return false; } return true; } LoggingConfiguration();  LoggingConfiguration(final boolean enabled);  LoggingConfiguration(final boolean enabled, final String loggingTarget); static LoggingConfiguration empty(); boolean isEnabled(); String getLoggingTarget(); List<Path> getContainers(); void setContainers(final List<Path> containers); @Override boolean equals(final Object o); @Override int hashCode(); }
LoggingConfiguration { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LoggingConfiguration that = (LoggingConfiguration) o; if(enabled != that.enabled) { return false; } if(!Objects.equals(loggingTarget, that.loggingTarget)) { return false; } return true; } LoggingConfiguration();  LoggingConfiguration(final boolean enabled);  LoggingConfiguration(final boolean enabled, final String loggingTarget); static LoggingConfiguration empty(); boolean isEnabled(); String getLoggingTarget(); List<Path> getContainers(); void setContainers(final List<Path> containers); @Override boolean equals(final Object o); @Override int hashCode();  }