assertTrue(dependency.contentEquals(copy));
}
@Test
public void contentsAreEqualWhenFileSetsAreEqual() {
SelfResolvingDependency equalDependency = new DefaultSelfResolvingDependency(source);
SelfResolvingDependency differentSource = new DefaultSelfResolvingDependency(context.mock(FileCollection.class, "other"));
Dependency differentType = context.mock(Dependency.class);
assertTrue(dependency.contentEquals(dependency));
assertTrue(dependency.contentEquals(equalDependency));
assertFalse(dependency.contentEquals(differentSource));