package model; import org.junit.Before; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import static org.junit.Assert.assertEquals; public class MatchTableTest { private MatchTable testTable; @Before public void setUp() { testTable = new MatchTable(); } @Test public void testTable() { ArrayList entry = new ArrayList(Arrays.asList("127.0.0.1", 4942, 1, 1, 2, 6, 1)); testTable.addEntry(entry); assertEquals(testTable.getMatchTable().get(new TableKey("127.0.0.1", 4942)), Arrays.asList(1, 1, 2, 6, 1)); } }