BAEL-1216: improve tests (#3309)
This commit is contained in:
parent
620abb2753
commit
fc8eb5dc98
|
@ -21,14 +21,6 @@ public class OrientDBGraphAPITest {
|
||||||
|
|
||||||
// @BeforeClass
|
// @BeforeClass
|
||||||
public static void init() {
|
public static void init() {
|
||||||
boolean articleExists = graph.getVertexType("Article") != null;
|
|
||||||
boolean writerExists = graph.getVertexType("Writer") != null;
|
|
||||||
boolean authorExists = graph.getVertexType("Author") != null;
|
|
||||||
boolean editorExists = graph.getVertexType("Editor") != null;
|
|
||||||
|
|
||||||
boolean classesExist = articleExists && writerExists && authorExists && editorExists;
|
|
||||||
|
|
||||||
if(!classesExist) {
|
|
||||||
graph.createVertexType("Article");
|
graph.createVertexType("Article");
|
||||||
|
|
||||||
OrientVertexType writerType = graph.createVertexType("Writer");
|
OrientVertexType writerType = graph.createVertexType("Writer");
|
||||||
|
@ -65,7 +57,6 @@ public class OrientDBGraphAPITest {
|
||||||
graph.addEdge(null, vAuthor, vEditor, "has");
|
graph.addEdge(null, vAuthor, vEditor, "has");
|
||||||
graph.addEdge(null, vAuthor, vArticle, "wrote");
|
graph.addEdge(null, vAuthor, vArticle, "wrote");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// @Test
|
// @Test
|
||||||
public void givenBaeldungDB_checkWeHaveThreeRecords() {
|
public void givenBaeldungDB_checkWeHaveThreeRecords() {
|
||||||
|
|
Loading…
Reference in New Issue