@Test public void testEquals() { DependencyTraverser traverser1 = new FatArtifactTraverser(); DependencyTraverser traverser2 = new FatArtifactTraverser(); assertEquals( traverser1, traverser1 ); assertEquals( traverser1, traverser2 ); assertNotEquals( traverser1, this ); assertNotEquals( traverser1, null ); }
@Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } else if ( null == obj || !getClass().equals( obj.getClass() ) ) { return false; } return true; }
FatArtifactTraverser implements DependencyTraverser { @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } else if ( null == obj || !getClass().equals( obj.getClass() ) ) { return false; } return true; } }
FatArtifactTraverser implements DependencyTraverser { @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } else if ( null == obj || !getClass().equals( obj.getClass() ) ) { return false; } return true; } FatArtifactTraverser(); }
FatArtifactTraverser implements DependencyTraverser { @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } else if ( null == obj || !getClass().equals( obj.getClass() ) ) { return false; } return true; } FatArtifactTraverser(); boolean traverseDependency( Dependency dependency ); DependencyTraverser deriveChildTraverser( DependencyCollectionContext context ); @Override boolean equals( Object obj ); @Override int hashCode(); }
FatArtifactTraverser implements DependencyTraverser { @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } else if ( null == obj || !getClass().equals( obj.getClass() ) ) { return false; } return true; } FatArtifactTraverser(); boolean traverseDependency( Dependency dependency ); DependencyTraverser deriveChildTraverser( DependencyCollectionContext context ); @Override boolean equals( Object obj ); @Override int hashCode();  }