@Test public void appendToLogIgnoresThePropertiesToIgnore() { LogOutput logOutput = mock(LogOutput.class); String propToIgnore = "propToIgnore"; Vertex vertex = vertex().withProperty(propToIgnore, "value").build(); CreateVertexLogEntry instance = new CreateVertexLogEntry(vertex, Sets.newHashSet(propToIgnore)); instance.appendToLog(logOutput); verify(logOutput, never()).newProperty(argThat(likeProperty().withKey(propToIgnore))); }
@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; }