use of org.cristalise.kernel.graph.model.GraphableEdge in project kernel by cristal-ise.
the class CastorXMLTest method testGraphMultiPointEdge.
@Test
public void testGraphMultiPointEdge() throws Exception {
CastorXMLUtility marshaller = Gateway.getMarshaller();
GraphableEdge edge = new Next();
edge.getMultiPoints().put(1, new GraphPoint(0, 0));
edge.getMultiPoints().put(2, new GraphPoint(100, 100));
edge.getMultiPoints().put(3, new GraphPoint(200, 100));
GraphableEdge edgePrime = (GraphableEdge) marshaller.unmarshall(marshaller.marshall(edge));
assertThat(edge).isEqualToComparingFieldByField(edgePrime);
Logger.msg(marshaller.marshall(edge));
Logger.msg(marshaller.marshall(edgePrime));
}
Aggregations