@CollectionFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_QUERIES) public void testRemove_nullForbidden() { try { getMultiset().remove(null, 2); fail("Expected NullPointerException"); } catch (NullPointerException expected) { } }
@CollectionFeature.Require(absent = SUPPORTS_REMOVE) public void testRemoveUnsupported() { try { getMultiset().remove(e0(), 2); fail("Expected UnsupportedOperationException"); } catch (UnsupportedOperationException expected) { } }
@CollectionFeature.Require(SUPPORTS_REMOVE) public void testRemove_occurrences_negative() { try { getMultiset().remove(e0(), -1); fail("multiset.remove(E, -1) didn't throw an exception"); } catch (IllegalArgumentException required) { } }
@CollectionFeature.Require(SUPPORTS_REMOVE) public void testRemoveNegative() { try { getMultiset().remove(e0(), -1); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } expectUnchanged(); }
@CollectionFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_QUERIES) public void testRemove_nullForbidden() { try { getMultiset().remove(null, 2); fail("Expected NullPointerException"); } catch (NullPointerException expected) {} }
@CollectionFeature.Require(absent = SUPPORTS_REMOVE) public void testRemoveUnsupported() { try { getMultiset().remove(samples.e0, 2); fail("Expected UnsupportedOperationException"); } catch (UnsupportedOperationException expected) {} }
@CollectionFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_QUERIES) public void testRemove_nullForbidden() { try { getMultiset().remove(null, 2); fail("Expected NullPointerException"); } catch (NullPointerException expected) { } }
@CollectionFeature.Require(SUPPORTS_REMOVE) public void testRemove_occurrences_negative() { try { getMultiset().remove(samples.e0, -1); fail("multiset.remove(E, -1) didn't throw an exception"); } catch (IllegalArgumentException required) {} }
@CollectionFeature.Require(absent = SUPPORTS_REMOVE) public void testRemoveUnsupported() { try { getMultiset().remove(e0(), 2); fail("Expected UnsupportedOperationException"); } catch (UnsupportedOperationException expected) { } }
@CollectionFeature.Require(SUPPORTS_REMOVE) public void testRemove_occurrences_negative() { try { getMultiset().remove(e0(), -1); fail("multiset.remove(E, -1) didn't throw an exception"); } catch (IllegalArgumentException required) { } }
@CollectionFeature.Require(SUPPORTS_REMOVE) public void testRemoveNegative() { try { getMultiset().remove(samples.e0, -1); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) {} expectUnchanged(); }
@CollectionFeature.Require(SUPPORTS_REMOVE) public void testRemoveNegative() { try { getMultiset().remove(e0(), -1); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } expectUnchanged(); }