Use interface instead of the implementation

This commit is contained in:
Grzegorz Piwowarek 2016-07-07 22:45:27 +02:00
parent 30f00a34af
commit 9257da4b44
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import com.google.common.collect.Multimap;
import com.google.common.collect.Multimaps; import com.google.common.collect.Multimaps;
import com.google.common.collect.Range; import com.google.common.collect.Range;
import com.google.common.collect.Sets; import com.google.common.collect.Sets;
import com.google.common.collect.Table;
import com.google.common.collect.TreeRangeMap; import com.google.common.collect.TreeRangeMap;
import com.google.common.io.Files; import com.google.common.io.Files;
import org.assertj.guava.data.MapEntry; import org.assertj.guava.data.MapEntry;
@ -78,7 +79,7 @@ public class AssertJGuavaTest {
@Test @Test
public void givenTable_whenVerifying_thenShouldBeCorrect() throws Exception { public void givenTable_whenVerifying_thenShouldBeCorrect() throws Exception {
final HashBasedTable<Integer, String, String> table = HashBasedTable.create(2, 2); final Table<Integer, String, String> table = HashBasedTable.create(2, 2);
table.put(1, "A", "PRESENT"); table.put(1, "A", "PRESENT");
table.put(1, "B", "ABSENT"); table.put(1, "B", "ABSENT");