@Test public void appendToLogLogsTheEdgeIsUpdated() { Edge edge = edge().withProperty("rev", 1).build(); Edge prevEdge = edge().withProperty("rev", 2).build(); LogOutput logOutput = mock(LogOutput.class); UpdateEdgeLogEntry instance = new UpdateEdgeLogEntry(edge, prevEdge); instance.appendToLog(logOutput); verify(logOutput).updateEdge(edge); }
@Override public void appendToLog(LogOutput dbLog) { dbLog.updateEdge(edge); propertyUpdater.updateProperties(dbLog); }
UpdateEdgeLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.updateEdge(edge); propertyUpdater.updateProperties(dbLog); } }
UpdateEdgeLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.updateEdge(edge); propertyUpdater.updateProperties(dbLog); } UpdateEdgeLogEntry(Edge edge, Edge prevEdge);   UpdateEdgeLogEntry(Edge edge, Edge prevEdge, Set<String> propertiesToIgnore); }
UpdateEdgeLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.updateEdge(edge); propertyUpdater.updateProperties(dbLog); } UpdateEdgeLogEntry(Edge edge, Edge prevEdge);   UpdateEdgeLogEntry(Edge edge, Edge prevEdge, Set<String> propertiesToIgnore); @Override void appendToLog(LogOutput dbLog); }
UpdateEdgeLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.updateEdge(edge); propertyUpdater.updateProperties(dbLog); } UpdateEdgeLogEntry(Edge edge, Edge prevEdge);   UpdateEdgeLogEntry(Edge edge, Edge prevEdge, Set<String> propertiesToIgnore); @Override void appendToLog(LogOutput dbLog);  }