@Test public void appendToLogAddsAnUpdateVertexLine() { Vertex oldVersion = vertex().withId("id").withProperty("rev", 1).build(); Vertex vertex = vertex().withId("id").withProperty("rev", 2).build(); UpdateVertexLogEntry instance = new UpdateVertexLogEntry(vertex, oldVersion); LogOutput dbLog = mock(LogOutput.class); instance.appendToLog(dbLog); verify(dbLog).updateVertex(vertex); }
@Override public void appendToLog(LogOutput dbLog) { dbLog.updateVertex(vertex); propertyUpdater.updateProperties(dbLog); }
UpdateVertexLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.updateVertex(vertex); propertyUpdater.updateProperties(dbLog); } }
UpdateVertexLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.updateVertex(vertex); propertyUpdater.updateProperties(dbLog); } UpdateVertexLogEntry(Vertex vertex, Vertex previousVersion);   UpdateVertexLogEntry(Vertex vertex, Vertex previousVersion, Set<String> propertiesToIgnore); }
UpdateVertexLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.updateVertex(vertex); propertyUpdater.updateProperties(dbLog); } UpdateVertexLogEntry(Vertex vertex, Vertex previousVersion);   UpdateVertexLogEntry(Vertex vertex, Vertex previousVersion, Set<String> propertiesToIgnore); @Override void appendToLog(LogOutput dbLog); }
UpdateVertexLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.updateVertex(vertex); propertyUpdater.updateProperties(dbLog); } UpdateVertexLogEntry(Vertex vertex, Vertex previousVersion);   UpdateVertexLogEntry(Vertex vertex, Vertex previousVersion, Set<String> propertiesToIgnore); @Override void appendToLog(LogOutput dbLog);  }