Skip to content

Commit

Permalink
update ut
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Dec 10, 2021
1 parent 93eccab commit dfdfd15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class MockUtil {
public static List<DataSet> mockVertexDataSets() {

List<byte[]> columnNames = new ArrayList<>();
columnNames.add("_vid".getBytes());
columnNames.add("person._vid".getBytes());
columnNames.add("person.boolean_col1".getBytes());
columnNames.add("person.long_col2".getBytes());
Expand All @@ -35,6 +36,7 @@ public static List<DataSet> mockVertexDataSets() {
// row 1
List<Value> 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));
Expand All @@ -43,7 +45,7 @@ public static List<DataSet> 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<Row> rows = new ArrayList<>();
rows.add(new Row(values1));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public void testScanVertexWithNoCol() {
}
}
}
System.out.println("count:" + count);
assert (count == 5);
}

Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -270,6 +273,7 @@ public void testScanEdgeWithoutCol() {
}
}
}
System.out.println("count:" + count);
assert (count == 5);
}

Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -380,6 +385,7 @@ public void testScanEdgeWithAllCols() {
.contains(result.getPropNames().get(3)));
assert (result.isAllSuccess());
}
System.out.println("count:" + count);
assert (count == 5);
}

Expand Down Expand Up @@ -501,6 +507,7 @@ private void assertIterator(ScanVertexResultIterator resultIterator) {
}
}
}
System.out.println("count:" + count);
assert (count == 5);
}
}

0 comments on commit dfdfd15

Please sign in to comment.