@Test public void intersectAllOverlapping() { MutableSet<String> names = Sets.intersectAll( this.overlappingSets.get(0), this.overlappingSets.get(1), this.overlappingSets.get(2)); Assert.assertEquals(UnifiedSet.newSetWith("Dick"), names); }
@Test public void intersectAllIdentical() { MutableSet<String> names = Sets.intersectAll( this.identicalSets.get(0), this.identicalSets.get(1), this.identicalSets.get(2)); Assert.assertEquals(UnifiedSet.newSetWith("Tom", "Dick", "Harry", null), names); }
@Test public void intersectAllUnique() { MutableSet<String> names = Sets.intersectAll(this.uniqueSets.get(0), this.uniqueSets.get(1), this.uniqueSets.get(2)); Assert.assertEquals(UnifiedSet.newSetWith(), names); }