EdgeSeed extends ElementSeed implements EdgeId { @Override public DirectedType getDirectedType() { return directed; } 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 shouldDeserialiseFromJsonUsingDirectedTrueField() { final String json = "{\"class\": \"uk.gov.gchq.gaffer.operation.data.EdgeSeed\", \"directed\": true}"; final EdgeSeed deserialisedEdgeSeed = fromJson(json.getBytes()); assertEquals(DirectedType.DIRECTED, deserialisedEdgeSeed.getDirectedType()); }
@Test public void shouldDeserialiseFromJsonUsingDirectedFalseField() { final String json = "{\"class\": \"uk.gov.gchq.gaffer.operation.data.EdgeSeed\", \"directed\": false}"; final EdgeSeed deserialisedEdgeSeed = fromJson(json.getBytes()); assertEquals(DirectedType.UNDIRECTED, deserialisedEdgeSeed.getDirectedType()); }
@Test public void shouldDeserialiseFromJsonWhenDirectedTypeIsDirected() { final String json = "{\"class\": \"uk.gov.gchq.gaffer.operation.data.EdgeSeed\", \"directedType\": \"DIRECTED\"}"; final EdgeSeed deserialisedEdgeSeed = fromJson(json.getBytes()); assertEquals(DirectedType.DIRECTED, deserialisedEdgeSeed.getDirectedType()); }
@Test public void shouldDeserialiseFromJsonWhenDirectedTypeIsUndirected() { final String json = "{\"class\": \"uk.gov.gchq.gaffer.operation.data.EdgeSeed\", \"directedType\": \"UNDIRECTED\"}"; final EdgeSeed deserialisedEdgeSeed = fromJson(json.getBytes()); assertEquals(DirectedType.UNDIRECTED, deserialisedEdgeSeed.getDirectedType()); }
@Test public void shouldDeserialiseFromJsonWhenDirectedTypeIsEither() { final String json = "{\"class\": \"uk.gov.gchq.gaffer.operation.data.EdgeSeed\", \"directedType\": \"EITHER\"}"; final EdgeSeed deserialisedEdgeSeed = fromJson(json.getBytes()); assertEquals(DirectedType.EITHER, deserialisedEdgeSeed.getDirectedType()); }