@Test public void testTraverseDependency() { Dependency dependency = new Dependency( new DefaultArtifact( "g:a:v:1" ), "runtime" ); DependencyTraverser traverser = new StaticDependencyTraverser( true ); assertTrue( traverser.traverseDependency( dependency ) ); traverser = new StaticDependencyTraverser( false ); assertFalse( traverser.traverseDependency( dependency ) ); }
public boolean traverseDependency( Dependency dependency ) { return traverse; }
StaticDependencyTraverser implements DependencyTraverser { public boolean traverseDependency( Dependency dependency ) { return traverse; } }
StaticDependencyTraverser implements DependencyTraverser { public boolean traverseDependency( Dependency dependency ) { return traverse; } StaticDependencyTraverser( boolean traverse ); }
StaticDependencyTraverser implements DependencyTraverser { public boolean traverseDependency( Dependency dependency ) { return traverse; } StaticDependencyTraverser( boolean traverse ); boolean traverseDependency( Dependency dependency ); DependencyTraverser deriveChildTraverser( DependencyCollectionContext context ); @Override boolean equals( Object obj ); @Override int hashCode(); }
StaticDependencyTraverser implements DependencyTraverser { public boolean traverseDependency( Dependency dependency ) { return traverse; } StaticDependencyTraverser( boolean traverse ); boolean traverseDependency( Dependency dependency ); DependencyTraverser deriveChildTraverser( DependencyCollectionContext context ); @Override boolean equals( Object obj ); @Override int hashCode();  }