@Test public void appendToLogAddsNewVertexLineForAVertexWithoutPreviousVersions() { Vertex vertex = vertex().build(); LogOutput dbLog = mock(LogOutput.class); CreateVertexLogEntry instance = new CreateVertexLogEntry(vertex); instance.appendToLog(dbLog); verify(dbLog).newVertex(vertex); }
@Override public void appendToLog(LogOutput dbLog) { dbLog.newVertex(vertex); StreamIterator.stream(vertex.properties()) .filter(property -> !propertiesToIgnore.contains(property.key())) .forEach(dbLog::newProperty); }
CreateVertexLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.newVertex(vertex); StreamIterator.stream(vertex.properties()) .filter(property -> !propertiesToIgnore.contains(property.key())) .forEach(dbLog::newProperty); } }
CreateVertexLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.newVertex(vertex); StreamIterator.stream(vertex.properties()) .filter(property -> !propertiesToIgnore.contains(property.key())) .forEach(dbLog::newProperty); } CreateVertexLogEntry(Vertex vertex);   CreateVertexLogEntry(Vertex vertex, Set<String> propertiesToIgnore); }
CreateVertexLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.newVertex(vertex); StreamIterator.stream(vertex.properties()) .filter(property -> !propertiesToIgnore.contains(property.key())) .forEach(dbLog::newProperty); } CreateVertexLogEntry(Vertex vertex);   CreateVertexLogEntry(Vertex vertex, Set<String> propertiesToIgnore); @Override void appendToLog(LogOutput dbLog); }
CreateVertexLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.newVertex(vertex); StreamIterator.stream(vertex.properties()) .filter(property -> !propertiesToIgnore.contains(property.key())) .forEach(dbLog::newProperty); } CreateVertexLogEntry(Vertex vertex);   CreateVertexLogEntry(Vertex vertex, Set<String> propertiesToIgnore); @Override void appendToLog(LogOutput dbLog); static final Logger LOG; }