@Test public void testTraverseDependency() { DependencyTraverser traverser = new FatArtifactTraverser(); Map<String, String> props = null; assertTrue( traverser.traverseDependency( new Dependency( new DefaultArtifact( "g:a:v:1", props ), "test" ) ) ); props = Collections.singletonMap( ArtifactProperties.INCLUDES_DEPENDENCIES, "false" ); assertTrue( traverser.traverseDependency( new Dependency( new DefaultArtifact( "g:a:v:1", props ), "test" ) ) ); props = Collections.singletonMap( ArtifactProperties.INCLUDES_DEPENDENCIES, "unrecognized" ); assertTrue( traverser.traverseDependency( new Dependency( new DefaultArtifact( "g:a:v:1", props ), "test" ) ) ); props = Collections.singletonMap( ArtifactProperties.INCLUDES_DEPENDENCIES, "true" ); assertFalse( traverser.traverseDependency( new Dependency( new DefaultArtifact( "g:a:v:1", props ), "test" ) ) ); }
public boolean traverseDependency( Dependency dependency ) { String prop = dependency.getArtifact().getProperty( ArtifactProperties.INCLUDES_DEPENDENCIES, "" ); return !Boolean.parseBoolean( prop ); }
FatArtifactTraverser implements DependencyTraverser { public boolean traverseDependency( Dependency dependency ) { String prop = dependency.getArtifact().getProperty( ArtifactProperties.INCLUDES_DEPENDENCIES, "" ); return !Boolean.parseBoolean( prop ); } }
FatArtifactTraverser implements DependencyTraverser { public boolean traverseDependency( Dependency dependency ) { String prop = dependency.getArtifact().getProperty( ArtifactProperties.INCLUDES_DEPENDENCIES, "" ); return !Boolean.parseBoolean( prop ); } FatArtifactTraverser(); }
FatArtifactTraverser implements DependencyTraverser { public boolean traverseDependency( Dependency dependency ) { String prop = dependency.getArtifact().getProperty( ArtifactProperties.INCLUDES_DEPENDENCIES, "" ); return !Boolean.parseBoolean( prop ); } FatArtifactTraverser(); boolean traverseDependency( Dependency dependency ); DependencyTraverser deriveChildTraverser( DependencyCollectionContext context ); @Override boolean equals( Object obj ); @Override int hashCode(); }
FatArtifactTraverser implements DependencyTraverser { public boolean traverseDependency( Dependency dependency ) { String prop = dependency.getArtifact().getProperty( ArtifactProperties.INCLUDES_DEPENDENCIES, "" ); return !Boolean.parseBoolean( prop ); } FatArtifactTraverser(); boolean traverseDependency( Dependency dependency ); DependencyTraverser deriveChildTraverser( DependencyCollectionContext context ); @Override boolean equals( Object obj ); @Override int hashCode();  }