@Test public void traverseRootMatch() { File file = mockFile("one.Test"); SourceFileTraversal traversal = new SourceFileTraversal(mockFolder("test", file)); Visitor visitor = mock(Visitor.class); traversal.traverse(visitor); verify(visitor).accept(eq(""), same(file)); verifyNoMoreInteractions(visitor); }
public void traverse(Visitor visitor) { traverse("", root, visitor); }
SourceFileTraversal { public void traverse(Visitor visitor) { traverse("", root, visitor); } }
SourceFileTraversal { public void traverse(Visitor visitor) { traverse("", root, visitor); } SourceFileTraversal(File root); }
SourceFileTraversal { public void traverse(Visitor visitor) { traverse("", root, visitor); } SourceFileTraversal(File root); void traverse(Visitor visitor); }
SourceFileTraversal { public void traverse(Visitor visitor) { traverse("", root, visitor); } SourceFileTraversal(File root); void traverse(Visitor visitor);  }