Skip to content

Commit 9257da4

Browse files
author
Grzegorz Piwowarek
committed
Use interface instead of the implementation
1 parent 30f00a3 commit 9257da4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎assertj/src/test/java/com/baeldung/assertj/introduction/AssertJGuavaTest.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import com.google.common.collect.Multimaps;
77
import com.google.common.collect.Range;
88
import com.google.common.collect.Sets;
9+
import com.google.common.collect.Table;
910
import com.google.common.collect.TreeRangeMap;
1011
import com.google.common.io.Files;
1112
import org.assertj.guava.data.MapEntry;
@@ -78,7 +79,7 @@ public void givenRangeMap_whenVerifying_thenShouldBeCorrect() throws Exception {
7879

7980
@Test
8081
public void givenTable_whenVerifying_thenShouldBeCorrect() throws Exception {
81-
final HashBasedTable<Integer, String, String> table = HashBasedTable.create(2, 2);
82+
final Table<Integer, String, String> table = HashBasedTable.create(2, 2);
8283

8384
table.put(1, "A", "PRESENT");
8485
table.put(1, "B", "ABSENT");

0 commit comments

Comments
 (0)