use of org.eclipse.mylyn.wikitext.maven.internal.SourceFileTraversal in project mylyn.docs by eclipse.
the class SourceFileTraversalTest method traverseRootMatch.
@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);
}
use of org.eclipse.mylyn.wikitext.maven.internal.SourceFileTraversal in project mylyn.docs by eclipse.
the class SourceFileTraversalTest method traverseMatchWithPath.
@Test
public void traverseMatchWithPath() {
File file = mockFile("one.Test");
SourceFileTraversal traversal = new SourceFileTraversal(mockFolder("test", mockFolder("depth1", mockFolder("depth2", file))));
Visitor visitor = mock(Visitor.class);
traversal.traverse(visitor);
verify(visitor).accept(eq("depth1" + File.separator + "depth2"), same(file));
verifyNoMoreInteractions(visitor);
}
Aggregations