@Test void equals() { Assertions.assertEquals(A, B); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Dependency that = (Dependency) o; return getOwner().equals(that.getOwner()) && getName().equals(that.getName()); }
Dependency { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Dependency that = (Dependency) o; return getOwner().equals(that.getOwner()) && getName().equals(that.getName()); } }
Dependency { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Dependency that = (Dependency) o; return getOwner().equals(that.getOwner()) && getName().equals(that.getName()); } protected  Dependency(String type, String owner, String name, String version); }
Dependency { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Dependency that = (Dependency) o; return getOwner().equals(that.getOwner()) && getName().equals(that.getName()); } protected  Dependency(String type, String owner, String name, String version); @Override boolean equals(Object o); @Override int hashCode(); String getType(); @Override String toString(); }
Dependency { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Dependency that = (Dependency) o; return getOwner().equals(that.getOwner()) && getName().equals(that.getName()); } protected  Dependency(String type, String owner, String name, String version); @Override boolean equals(Object o); @Override int hashCode(); String getType(); @Override String toString();  }