BAEL-1216: improve tests (#3309)

This commit is contained in:
Dassi orleando 2017-12-28 04:21:13 +01:00 committed by maibin
parent 620abb2753
commit fc8eb5dc98
1 changed files with 28 additions and 37 deletions

View File

@ -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() {