EdgeSeed extends ElementSeed implements EdgeId { @Override public boolean equals(final Object obj) { return null != obj && (obj instanceof EdgeSeed) && isEqual((EdgeSeed) obj); } EdgeSeed();  EdgeSeed(final Object source, final Object destination);  EdgeSeed(final Object source, final Object destination, final boolean directed);  EdgeSeed(final Object source, final Object destination, final DirectedType directed);  EdgeSeed(final Object source, final Object destination, final boolean directed, final MatchedVertex matchedVertex);  EdgeSeed(final Object source,
                    final Object destination,
                    final DirectedType directed,
                    final MatchedVertex matchedVertex); @JsonCreator  EdgeSeed(@JsonProperty("source") final Object source,
                    @JsonProperty("destination") final Object destination,
                    @JsonProperty("directed") final Boolean directed,
                    @JsonProperty("directedType") final DirectedType directedType,
                    @JsonProperty("matchedVertex") final MatchedVertex matchedVertex); @Override Object getSource(); @Override Object getDestination(); @Override DirectedType getDirectedType(); @Override void setIdentifiers(final Object source, final Object destination, final DirectedType directed, final MatchedVertex matchedVertex); @Override MatchedVertex getMatchedVertex(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void shouldBeNotEqualWhenDestinationNotEqual() { final String source = "source"; final String destination = "destination"; final boolean directed = true; final EdgeId seed1 = new EdgeSeed(source, destination, directed); final EdgeId seed2 = new EdgeSeed(source, "different destination", directed); final boolean isEqual = seed1.equals(seed2); assertFalse(isEqual); }
@Test public void shouldBeNotEqualWhenDirectedNotEqual() { final String source = "source"; final String destination = "destination"; final boolean directed = true; final EdgeId seed1 = new EdgeSeed(source, destination, directed); final EdgeId seed2 = new EdgeSeed(source, destination, false); final boolean isEqual = seed1.equals(seed2); assertFalse(isEqual); }