@Test public void appendToLogIgnoresThePropertiesToIgnore() { LogOutput logOutput = mock(LogOutput.class); String propToIgnore = "propToIgnore"; Edge edge = edge().withProperty(propToIgnore, "value").build(); CreateEdgeLogEntry instance = new CreateEdgeLogEntry(edge, Sets.newHashSet(propToIgnore)); instance.appendToLog(logOutput); verify(logOutput, never()).newProperty(argThat(likeProperty().withKey(propToIgnore))); }
@Override public void appendToLog(LogOutput dbLog) { dbLog.newEdge(edge); StreamIterator.stream(edge.properties()) .filter(property -> !propertiesToIgnore.contains(property.key())) .forEach(dbLog::newProperty); }
CreateEdgeLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.newEdge(edge); StreamIterator.stream(edge.properties()) .filter(property -> !propertiesToIgnore.contains(property.key())) .forEach(dbLog::newProperty); } }
CreateEdgeLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.newEdge(edge); StreamIterator.stream(edge.properties()) .filter(property -> !propertiesToIgnore.contains(property.key())) .forEach(dbLog::newProperty); } CreateEdgeLogEntry(Edge edge);  CreateEdgeLogEntry(Edge edge, Set<String> propertiesToIgnore); }
CreateEdgeLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.newEdge(edge); StreamIterator.stream(edge.properties()) .filter(property -> !propertiesToIgnore.contains(property.key())) .forEach(dbLog::newProperty); } CreateEdgeLogEntry(Edge edge);  CreateEdgeLogEntry(Edge edge, Set<String> propertiesToIgnore); @Override void appendToLog(LogOutput dbLog); }
CreateEdgeLogEntry implements LogEntry { @Override public void appendToLog(LogOutput dbLog) { dbLog.newEdge(edge); StreamIterator.stream(edge.properties()) .filter(property -> !propertiesToIgnore.contains(property.key())) .forEach(dbLog::newProperty); } CreateEdgeLogEntry(Edge edge);  CreateEdgeLogEntry(Edge edge, Set<String> propertiesToIgnore); @Override void appendToLog(LogOutput dbLog);  }