From 9257da4b4480bb07c1ec5919093cdbca2c263259 Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Thu, 7 Jul 2016 22:45:27 +0200 Subject: [PATCH] Use interface instead of the implementation --- .../com/baeldung/assertj/introduction/AssertJGuavaTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 9c51af3ee9..558ce87d70 100644 --- a/assertj/src/test/java/com/baeldung/assertj/introduction/AssertJGuavaTest.java +++ b/assertj/src/test/java/com/baeldung/assertj/introduction/AssertJGuavaTest.java @@ -6,6 +6,7 @@ import com.google.common.collect.Multimap; import com.google.common.collect.Multimaps; import com.google.common.collect.Range; import com.google.common.collect.Sets; +import com.google.common.collect.Table; import com.google.common.collect.TreeRangeMap; import com.google.common.io.Files; import org.assertj.guava.data.MapEntry; @@ -78,7 +79,7 @@ public class AssertJGuavaTest { @Test public void givenTable_whenVerifying_thenShouldBeCorrect() throws Exception { - final HashBasedTable table = HashBasedTable.create(2, 2); + final Table table = HashBasedTable.create(2, 2); table.put(1, "A", "PRESENT"); table.put(1, "B", "ABSENT");