@Test public void itGIvesYouAnInitDb() throws JsonProcessingException { final TinkerPopGraphManager graphManager = newGraph() .wrap(); TinkerPopOperations ops = forInitDb(graphManager); assertThat(ops.databaseIsEmptyExceptForMigrations(), is(true)); ops.initDb(new VresBuilder() .withVre("Admin", "", vre -> vre.withCollection("relations", CollectionBuilder::isRelationCollection)) .build(), relationType("concept", "hasFirstPerson", "person", "someRel", false, false, false, UUID.randomUUID()) ); assertThat(graphManager.getGraph().traversal().V().count().next(), is(4L)); }
static TinkerPopOperations forInitDb(TinkerPopGraphManager graphManager) { return new TinkerPopOperations(graphManager); }
TinkerPopOperationsForMigrations { static TinkerPopOperations forInitDb(TinkerPopGraphManager graphManager) { return new TinkerPopOperations(graphManager); } }
TinkerPopOperationsForMigrations { static TinkerPopOperations forInitDb(TinkerPopGraphManager graphManager) { return new TinkerPopOperations(graphManager); }  }
TinkerPopOperationsForMigrations { static TinkerPopOperations forInitDb(TinkerPopGraphManager graphManager) { return new TinkerPopOperations(graphManager); }   }
TinkerPopOperationsForMigrations { static TinkerPopOperations forInitDb(TinkerPopGraphManager graphManager) { return new TinkerPopOperations(graphManager); }    }