|
|
|
@ -22,7 +22,7 @@ public class MatchTableTest {
|
|
|
|
public void testTable() {
|
|
|
|
public void testTable() {
|
|
|
|
HostGame entry = new HostGame("127.0.0.1", 4942, (byte)1, (byte)1, RaceStatusEnum.PRESTART, (byte)6, (byte)1);
|
|
|
|
HostGame entry = new HostGame("127.0.0.1", 4942, (byte)1, (byte)1, RaceStatusEnum.PRESTART, (byte)6, (byte)1);
|
|
|
|
|
|
|
|
|
|
|
|
testTable.addEntry(entry);
|
|
|
|
testTable.addEntry("127.0.0.1", 3779, entry);
|
|
|
|
|
|
|
|
|
|
|
|
assertEquals(testTable.getMatchTable().get(new TableKey("127.0.0.1", 4942)), Arrays.asList(1, 1, 2, 6, 1));
|
|
|
|
assertEquals(testTable.getMatchTable().get(new TableKey("127.0.0.1", 4942)), Arrays.asList(1, 1, 2, 6, 1));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|