updating match table to store ip and port of clients and hosts
#story[1188]
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package model;
|
||||
|
||||
import network.Messages.Enums.RaceStatusEnum;
|
||||
import network.Messages.HostGame;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -18,7 +20,7 @@ public class MatchTableTest {
|
||||
|
||||
@Test
|
||||
public void testTable() {
|
||||
ArrayList entry = new ArrayList(Arrays.asList("127.0.0.1", 4942, 1, 1, 2, 6, 1));
|
||||
HostGame entry = new HostGame("127.0.0.1", 4942, (byte)1, (byte)1, RaceStatusEnum.PRESTART, (byte)6, (byte)1);
|
||||
|
||||
testTable.addEntry(entry);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user