added the new program for holding known games
#stroy[1188]
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user