use of com.b2international.collections.ints.IntSet in project snow-owl by b2ihealthcare.
the class IntOpenHashSetTest method addAll_null.
@Test(expected = NullPointerException.class)
public void addAll_null() {
IntSet intSet = PrimitiveSets.newIntOpenHashSet();
intSet.addAll(null);
}
use of com.b2international.collections.ints.IntSet in project snow-owl by b2ihealthcare.
the class IntOpenHashSetTest method toArray_empty.
@Test
public void toArray_empty() {
IntSet intSet = PrimitiveSets.newIntOpenHashSet();
int[] array = intSet.toArray();
assertEquals("Array should be empty for empty sets.", 0, array.length);
}
use of com.b2international.collections.ints.IntSet in project snow-owl by b2ihealthcare.
the class IntOpenHashSetTest method addAll_empty.
@Test
public void addAll_empty() {
IntSet intSet = PrimitiveSets.newIntOpenHashSet();
intSet.addAll(PrimitiveSets.newIntOpenHashSet());
assertTrue("Integer set should be empty.", intSet.isEmpty());
}
use of com.b2international.collections.ints.IntSet in project snow-owl by b2ihealthcare.
the class IntOpenHashSetTest method containsAll_empty.
@Test
public void containsAll_empty() {
IntSet intSet = PrimitiveSets.newIntOpenHashSet();
intSet.add(0);
assertTrue("Set should contain all elements from an empty set.", intSet.containsAll(PrimitiveSets.newIntOpenHashSet()));
}
use of com.b2international.collections.ints.IntSet in project snow-owl by b2ihealthcare.
the class IntOpenHashSetTest method containsAll_null.
@Test(expected = NullPointerException.class)
public void containsAll_null() {
IntSet intSet = PrimitiveSets.newIntOpenHashSet();
intSet.containsAll(null);
}
Aggregations