Update test to match code in the article

This commit is contained in:
Alex Theedom 2016-07-10 16:36:05 +01:00
parent cc6b6419a9
commit 9cdb683e00
1 changed files with 3 additions and 4 deletions

View File

@ -60,13 +60,12 @@ public class AssertJGuavaTest {
mmap1_clone.put(2, "2");
final Multimap<Integer, String> mmap2 = Multimaps.newMultimap(new HashMap<>(), Sets::newHashSet);
mmap1.put(1, "one");
mmap1.put(1, "1");
mmap2.put(1, "one");
mmap2.put(1, "1");
assertThat(mmap1)
.containsAllEntriesOf(mmap2)
.hasSameEntriesAs(mmap1_clone)
.isNotEqualTo(mmap1_clone);
.hasSameEntriesAs(mmap1_clone);
}
@Test