@Test public void findByFilter() { Filter filter = new Filter("key", ComparisonOperator.EQUALS, "value"); graphService.findByFilter(filter); verify(sessionMock).loadAll(ClassNode.class, filter); verifyNoMoreInteractions(sessionMock); verifyZeroInteractions(txMock); }
public Collection<ClassNode> findByFilter(Filter filter) { return session.loadAll(ClassNode.class, filter); }
GraphService { public Collection<ClassNode> findByFilter(Filter filter) { return session.loadAll(ClassNode.class, filter); } }
GraphService { public Collection<ClassNode> findByFilter(Filter filter) { return session.loadAll(ClassNode.class, filter); } GraphService();  GraphService(Session session); }
GraphService { public Collection<ClassNode> findByFilter(Filter filter) { return session.loadAll(ClassNode.class, filter); } GraphService();  GraphService(Session session); void close(); void saveGraph(DependencyGraph dependencyGraph); void deleteAll(); Collection<ClassNode> findByProperty(String key, Object value); Collection<ClassNode> findByFilter(Filter filter); }
GraphService { public Collection<ClassNode> findByFilter(Filter filter) { return session.loadAll(ClassNode.class, filter); } GraphService();  GraphService(Session session); void close(); void saveGraph(DependencyGraph dependencyGraph); void deleteAll(); Collection<ClassNode> findByProperty(String key, Object value); Collection<ClassNode> findByFilter(Filter filter);  }