From 9cdb683e00c4b8a486094d44521572ce41c39c77 Mon Sep 17 00:00:00 2001 From: Alex Theedom Date: Sun, 10 Jul 2016 16:36:05 +0100 Subject: [PATCH] Update test to match code in the article --- .../baeldung/assertj/introduction/AssertJGuavaTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/assertj/src/test/java/com/baeldung/assertj/introduction/AssertJGuavaTest.java b/assertj/src/test/java/com/baeldung/assertj/introduction/AssertJGuavaTest.java index 6f369b160e..f6862c1d98 100644 --- a/assertj/src/test/java/com/baeldung/assertj/introduction/AssertJGuavaTest.java +++ b/assertj/src/test/java/com/baeldung/assertj/introduction/AssertJGuavaTest.java @@ -60,13 +60,12 @@ public class AssertJGuavaTest { mmap1_clone.put(2, "2"); final Multimap 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