Skip to content

Commit

Permalink
remove empty lines
Browse files Browse the repository at this point in the history
Change-Id: Ifa7763b488d1fb95b23c50e03c354d2ff111b72e
  • Loading branch information
javeme committed Aug 7, 2020
1 parent ce50f24 commit f978787
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ public void testVertexBatchUpdateWithInvalidArgs() {
}, e -> {
String expect = "Parameter 'vertices' can't be null";
Assert.assertContains(expect, e.getMessage());

});

BatchVertexRequest req3 = batchVertexRequest("list", "old", "old",
Expand All @@ -250,7 +249,6 @@ public void testVertexBatchUpdateWithInvalidArgs() {
}, e -> {
String expect = "The number of vertices can't be 0";
Assert.assertContains(expect, e.getMessage());

});

BatchVertexRequest req4 = batchVertexRequest("list", "old", "old",
Expand All @@ -262,7 +260,6 @@ public void testVertexBatchUpdateWithInvalidArgs() {
String expect = "Parameter 'create_if_not_exist' " +
"dose not support false now";
Assert.assertContains(expect, e.getMessage());

});

BatchVertexRequest req5 = batchVertexRequest("list", "old", "old",
Expand All @@ -273,7 +270,6 @@ public void testVertexBatchUpdateWithInvalidArgs() {
}, e -> {
String expect = "Parameter 'update_strategies' can't be empty";
Assert.assertContains(expect, e.getMessage());

});

BatchVertexRequest req6 = batchVertexRequest("list", "old", "old",
Expand All @@ -285,7 +281,6 @@ public void testVertexBatchUpdateWithInvalidArgs() {
}, e -> {
String expect = "Parameter 'update_strategies' can't be empty";
Assert.assertContains(expect, e.getMessage());

});
}

Expand All @@ -299,7 +294,6 @@ public void testVertexInvalidUpdateStrategy() {
String expect = "Property type must be Number for strategy SUM, " +
"but got type String, String";
Assert.assertContains(expect, e.getMessage());

});

BatchVertexRequest req2 = batchVertexRequest("name", "old", "new",
Expand All @@ -310,7 +304,6 @@ public void testVertexInvalidUpdateStrategy() {
String expect = "Property type must be Date or Number " +
"for strategy BIGGER, but got type String, String";
Assert.assertContains(expect, e.getMessage());

});

BatchVertexRequest req3 = batchVertexRequest("name", "old", "new",
Expand All @@ -321,7 +314,6 @@ public void testVertexInvalidUpdateStrategy() {
String expect = "Property type must be Date or Number " +
"for strategy SMALLER, but got type String, String";
Assert.assertContains(expect, e.getMessage());

});

BatchVertexRequest req4 = batchVertexRequest("price", 1, -1,
Expand All @@ -332,7 +324,6 @@ public void testVertexInvalidUpdateStrategy() {
String expect = "Property type must be Set or List " +
"for strategy UNION, but got type Integer, Integer";
Assert.assertContains(expect, e.getMessage());

});

BatchVertexRequest req5 = batchVertexRequest("date", "old", "new",
Expand All @@ -343,7 +334,6 @@ public void testVertexInvalidUpdateStrategy() {
String expect = "Property type must be Set or List for " +
"strategy INTERSECTION, but got type Date, Long";
Assert.assertContains(expect, e.getMessage());

});

BatchVertexRequest req6 = batchVertexRequest("price", 1, -1,
Expand All @@ -354,7 +344,6 @@ public void testVertexInvalidUpdateStrategy() {
String expect = "Property type must be Set or List for " +
"strategy APPEND, but got type Integer, Integer";
Assert.assertContains(expect, e.getMessage());

});

BatchVertexRequest req7 = batchVertexRequest("name", "old", "new",
Expand All @@ -365,7 +354,6 @@ public void testVertexInvalidUpdateStrategy() {
String expect = "Property type must be Set or List for " +
"strategy ELIMINATE, but got type String, String";
Assert.assertContains(expect, e.getMessage());

});
}

Expand Down Expand Up @@ -521,7 +509,6 @@ public void testEdgeBatchUpdateWithInvalidArgs() {
}, e -> {
String expect = "The batch body can't contain null record";
Assert.assertContains(expect, e.getMessage());

});

BatchEdgeRequest req2 = batchEdgeRequest("list", "old", "old",
Expand All @@ -532,7 +519,6 @@ public void testEdgeBatchUpdateWithInvalidArgs() {
}, e -> {
String expect = "Parameter 'edges' can't be null";
Assert.assertContains(expect, e.getMessage());

});

BatchEdgeRequest req3 = batchEdgeRequest("list", "old", "old",
Expand All @@ -543,7 +529,6 @@ public void testEdgeBatchUpdateWithInvalidArgs() {
}, e -> {
String expect = "The number of edges can't be 0";
Assert.assertContains(expect, e.getMessage());

});

BatchEdgeRequest req4 = batchEdgeRequest("list", "old", "old",
Expand All @@ -555,7 +540,6 @@ public void testEdgeBatchUpdateWithInvalidArgs() {
String expect = "Parameter 'create_if_not_exist' " +
"dose not support false now";
Assert.assertContains(expect, e.getMessage());

});

BatchEdgeRequest req5 = batchEdgeRequest("list", "old", "old",
Expand All @@ -566,7 +550,6 @@ public void testEdgeBatchUpdateWithInvalidArgs() {
}, e -> {
String expect = "Parameter 'update_strategies' can't be empty";
Assert.assertContains(expect, e.getMessage());

});

BatchEdgeRequest req6 = batchEdgeRequest("list", "old", "old",
Expand All @@ -578,7 +561,6 @@ public void testEdgeBatchUpdateWithInvalidArgs() {
}, e -> {
String expect = "Parameter 'update_strategies' can't be empty";
Assert.assertContains(expect, e.getMessage());

});

BatchEdgeRequest req7 = batchEdgeRequest("list", "old", "old",
Expand All @@ -591,7 +573,6 @@ public void testEdgeBatchUpdateWithInvalidArgs() {
}, e -> {
String expect = "Too many edges for one time post";
Assert.assertContains(expect, e.getMessage());

});
}

Expand All @@ -605,7 +586,6 @@ public void testEdgeInvalidUpdateStrategy() {
String expect = "Property type must be Number for strategy SUM, " +
"but got type String, String";
Assert.assertContains(expect, e.getMessage());

});

BatchEdgeRequest req2 = batchEdgeRequest("name", "old", "new",
Expand All @@ -616,7 +596,6 @@ public void testEdgeInvalidUpdateStrategy() {
String expect = "Property type must be Date or Number " +
"for strategy BIGGER, but got type String, String";
Assert.assertContains(expect, e.getMessage());

});

BatchEdgeRequest req3 = batchEdgeRequest("name", "old", "new",
Expand All @@ -627,7 +606,6 @@ public void testEdgeInvalidUpdateStrategy() {
String expect = "Property type must be Date or Number " +
"for strategy SMALLER, but got type String, String";
Assert.assertContains(expect, e.getMessage());

});

BatchEdgeRequest req4 = batchEdgeRequest("price", 1, -1,
Expand All @@ -638,7 +616,6 @@ public void testEdgeInvalidUpdateStrategy() {
String expect = "Property type must be Set or List " +
"for strategy UNION, but got type Integer, Integer";
Assert.assertContains(expect, e.getMessage());

});

BatchEdgeRequest req5 = batchEdgeRequest("date", "old", "new",
Expand All @@ -649,7 +626,6 @@ public void testEdgeInvalidUpdateStrategy() {
String expect = "Property type must be Set or List for " +
"strategy INTERSECTION, but got type Date, Long";
Assert.assertContains(expect, e.getMessage());

});

BatchEdgeRequest req6 = batchEdgeRequest("price", 1, -1,
Expand All @@ -660,7 +636,6 @@ public void testEdgeInvalidUpdateStrategy() {
String expect = "Property type must be Set or List for " +
"strategy APPEND, but got type Integer, Integer";
Assert.assertContains(expect, e.getMessage());

});

BatchEdgeRequest req7 = batchEdgeRequest("name", "old", "new",
Expand All @@ -671,7 +646,6 @@ public void testEdgeInvalidUpdateStrategy() {
String expect = "Property type must be Set or List for " +
"strategy ELIMINATE, but got type String, String";
Assert.assertContains(expect, e.getMessage());

});
}

Expand Down
5 changes: 0 additions & 5 deletions src/test/java/com/baidu/hugegraph/api/IndexLabelApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ public void testCreateSecondaryIndexOnMultiPropertiesOverrideExist() {
String expect = String.format("index label with name '%s' does " +
"not exist", personByCityAndAge);
Assert.assertContains(expect, e.getMessage());

});
schema().indexLabel(personByCityAndAge)
.onV("person")
Expand All @@ -185,7 +184,6 @@ public void testCreateSecondaryIndexOnMultiPropertiesOverrideExist() {
String expect = String.format("index label with name '%s' does " +
"not exist", personByCity);
Assert.assertContains(expect, e.getMessage());

});
indexLabelAPI.get(personByCityAndAge);
}
Expand All @@ -206,7 +204,6 @@ public void testCreateShardIndexOnMultiPropertiesOverrideExist() {
String expect = String.format("index label with name '%s' does " +
"not exist", personByCityAndAge);
Assert.assertContains(expect, e.getMessage());

});
schema().indexLabel(personByCityAndAge)
.onV("person")
Expand All @@ -219,7 +216,6 @@ public void testCreateShardIndexOnMultiPropertiesOverrideExist() {
String expect = String.format("index label with name '%s' does " +
"not exist", personByCity);
Assert.assertContains(expect, e.getMessage());

});
indexLabelAPI.get(personByCityAndAge);
}
Expand Down Expand Up @@ -341,7 +337,6 @@ public void testDelete() {
String expect = String.format("index label with name '%s' does " +
"not exist", name);
Assert.assertContains(expect, e.getMessage());

});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ public void testCrosspointsWithCapacity() {
}, e -> {
String expect = "Exceed capacity '2' while finding paths";
Assert.assertContains(expect, e.getMessage());

});
}

Expand Down Expand Up @@ -204,7 +203,6 @@ public void testKoutBothAllWithCapacity() {
String expect = "Capacity can't be less than limit, " +
"but got capacity '1' and limit '-1'";
Assert.assertContains(expect, e.getMessage());

});
}

Expand Down Expand Up @@ -364,7 +362,6 @@ public void testScanVertexWithSplitSizeLt1MB() {
String expect = "The split-size must be >= 1048576 bytes, " +
"but got 1048575";
Assert.assertContains(expect, e.getMessage());

});
}

Expand Down Expand Up @@ -405,7 +402,6 @@ public void testScanEdgeInPagingWithNegativeLimit() {
}, e -> {
String expect = "Invalid limit -1";
Assert.assertContains(expect, e.getMessage());

});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ public void testFusiformSimilarityCapacity() {
String expect = "Exceed capacity '10' while " +
"finding fusiform similarity";
Assert.assertContains(expect, e.getMessage());

});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ public void testNeighborRankWithCapacity() {
}, e -> {
String expect = "Exceed capacity '1' while finding neighbor rank";
Assert.assertContains(expect, e.getMessage());

});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public void testRingsWithCapacity() {
}, e -> {
String expect = "Exceed capacity '1' while finding rings";
Assert.assertContains(expect, e.getMessage());

});
}

Expand Down Expand Up @@ -270,7 +269,6 @@ public void testRaysWithCapacity() {
}, e -> {
String expect = "Exceed capacity '1' while finding rays";
Assert.assertContains(expect, e.getMessage());

});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ public void testShortestPathWithCapacity() {
}, e -> {
String expect = "Exceed capacity '2' while finding shortest path";
Assert.assertContains(expect, e.getMessage());

});
}

Expand Down

0 comments on commit f978787

Please sign in to comment.