use of com.b2international.collections.longs.LongList in project snow-owl by b2ihealthcare.
the class EmptyLongListTest method removeAll_null.
@Test(expected = NullPointerException.class)
public void removeAll_null() {
LongList emptyList = LongCollections.emptyList();
emptyList.removeAll(null);
}
use of com.b2international.collections.longs.LongList in project snow-owl by b2ihealthcare.
the class EmptyLongListTest method trimToSize.
@Test
public void trimToSize() {
LongList emptyList = LongCollections.emptyList();
emptyList.trimToSize();
}
use of com.b2international.collections.longs.LongList in project snow-owl by b2ihealthcare.
the class EmptyLongListTest method retainAll.
@Test
public void retainAll() {
LongList emptyList = LongCollections.emptyList();
LongList otherList = PrimitiveLists.newLongArrayList(0L, 5L, 10L);
emptyList.retainAll(otherList);
assertEquals("Empty list should remain empty.", 0, emptyList.size());
assertTrue("Non-empty list should not change.", otherList.get(0) == 0L && otherList.get(1) == 5L && otherList.get(2) == 10L && otherList.size() == 3);
}
use of com.b2international.collections.longs.LongList in project snow-owl by b2ihealthcare.
the class EmptyLongListTest method addAll_null.
@Test(expected = NullPointerException.class)
public void addAll_null() {
LongList emptyList = LongCollections.emptyList();
emptyList.addAll(null);
}
use of com.b2international.collections.longs.LongList in project snow-owl by b2ihealthcare.
the class EmptyLongListTest method addAll_empty.
public void addAll_empty() {
LongList emptyList = LongCollections.emptyList();
emptyList.addAll(LongCollections.emptyList());
}
Aggregations