diff --git a/client/src/test/java/com/vesoft/nebula/client/storage/MockUtil.java b/client/src/test/java/com/vesoft/nebula/client/storage/MockUtil.java index 284a36201..17e95e8e8 100644 --- a/client/src/test/java/com/vesoft/nebula/client/storage/MockUtil.java +++ b/client/src/test/java/com/vesoft/nebula/client/storage/MockUtil.java @@ -23,6 +23,7 @@ public class MockUtil { public static List mockVertexDataSets() { List columnNames = new ArrayList<>(); + columnNames.add("_vid".getBytes()); columnNames.add("person._vid".getBytes()); columnNames.add("person.boolean_col1".getBytes()); columnNames.add("person.long_col2".getBytes()); @@ -35,6 +36,7 @@ public static List mockVertexDataSets() { // row 1 List values1 = new ArrayList<>(); values1.add(Value.sVal("Tom".getBytes())); + values1.add(Value.sVal("Tom".getBytes())); values1.add(Value.bVal(true)); values1.add(Value.iVal(12)); values1.add(Value.fVal(1.0)); @@ -43,7 +45,7 @@ public static List mockVertexDataSets() { values1.add(Value.dtVal(new DateTime((short) 2020, (byte) 1, (byte) 1, (byte) 12, (byte) 10, (byte) 30, 100))); values1.add(Value.ggVal(new Geography(Geography.PTVAL, - new Point(new Coordinate(1.0,1.5))))); + new Point(new Coordinate(1.0, 1.5))))); List rows = new ArrayList<>(); rows.add(new Row(values1)); diff --git a/client/src/test/java/com/vesoft/nebula/client/storage/StorageClientTest.java b/client/src/test/java/com/vesoft/nebula/client/storage/StorageClientTest.java index a527daa82..601276957 100644 --- a/client/src/test/java/com/vesoft/nebula/client/storage/StorageClientTest.java +++ b/client/src/test/java/com/vesoft/nebula/client/storage/StorageClientTest.java @@ -106,6 +106,7 @@ public void testScanVertexWithNoCol() { } } } + System.out.println("count:" + count); assert (count == 5); } @@ -172,6 +173,7 @@ public void testScanVertexWithCols() { assert (Arrays.asList(18L, 20L, 23L, 15L, 25L).contains(tableRow.getLong(2))); } } + System.out.println("count:" + count); assert (count == 5); } @@ -206,6 +208,7 @@ public void testScanVertexWithAllCol() { assert (Arrays.asList("name", "age").contains(result.getPropNames().get(2))); assert (result.isAllSuccess()); } + System.out.println("count:" + count); assert (count == 5); } @@ -270,6 +273,7 @@ public void testScanEdgeWithoutCol() { } } } + System.out.println("count:" + count); assert (count == 5); } @@ -341,6 +345,7 @@ public void testScanEdgeWithCols() { assert (Arrays.asList(1.0, 2.1, 3.2, 4.5, 5.9).contains(tableRow.getDouble(3))); } } + System.out.println("count:" + count); assert (count == 5); } @@ -380,6 +385,7 @@ public void testScanEdgeWithAllCols() { .contains(result.getPropNames().get(3))); assert (result.isAllSuccess()); } + System.out.println("count:" + count); assert (count == 5); } @@ -501,6 +507,7 @@ private void assertIterator(ScanVertexResultIterator resultIterator) { } } } + System.out.println("count:" + count); assert (count == 5); } }