Lines Matching refs:multiset
265 Multiset<String> multiset = HashMultiset.create(asList("foo", "bar"));
266 Multiset<String> constrained = Constraints.constrainedMultiset(
267 multiset, TEST_CONSTRAINT);
268 multiset.add(TEST_ELEMENT);
272 assertTrue(multiset.equals(constrained));
273 assertTrue(constrained.equals(multiset));
274 assertEquals(multiset.toString(), constrained.toString());
275 assertEquals(multiset.hashCode(), constrained.hashCode());
276 ASSERT.that(multiset).hasContentsAnyOrder(
283 ASSERT.that(multiset).hasContentsAnyOrder("bar", TEST_ELEMENT, "qux", "cat", "dog");
288 Multiset<String> multiset = HashMultiset.create(asList("foo", "bar"));
289 Multiset<String> constrained = Constraints.constrainedMultiset(
290 multiset, TEST_CONSTRAINT);
304 ASSERT.that(multiset).hasContentsAnyOrder("foo", "bar");