use of org.neo4j.driver.internal.InternalPoint3D in project neo4j by neo4j.
the class TableOutputFormatterTest method prettyPrintPoint.
@Test
public void prettyPrintPoint() {
// given
List<String> keys = asList("p1", "p2");
Value point2d = new PointValue(new InternalPoint2D(4326, 42.78, 56.7));
Value point3d = new PointValue(new InternalPoint3D(4326, 1.7, 26.79, 34.23));
Record record = new InternalRecord(keys, new Value[] { point2d, point3d });
// when
String actual = verbosePrinter.format(new ListBoltResult(asList(record), mock(ResultSummary.class)));
// then
assertThat(actual, containsString("| point({srid:4326, x:42.78, y:56.7}) |"));
assertThat(actual, containsString("| point({srid:4326, x:1.7, y:26.79, z:34.23}) |"));
}
Aggregations