java.lang.Object
Model.tests.HostServerTest
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidtestCheckForMessage(MyServer server, HostModel hostModel, int hostServerPort) Test if the server can handle a messagesstatic voidtestSendToAllPlayers(MyServer server, HostModel hostModel, int hostServerPort) test if the server can send to all players who are connected to the serverstatic voidtestSendToSpecificPlayer(MyServer server, HostModel hostModel, int hostServerPort) Test if the server can send a message to a specific player
-
Constructor Details
-
HostServerTest
public HostServerTest()
-
-
Method Details
-
testSendToAllPlayers
test if the server can send to all players who are connected to the server -
testSendToSpecificPlayer
public static void testSendToSpecificPlayer(MyServer server, HostModel hostModel, int hostServerPort) Test if the server can send a message to a specific player -
testCheckForMessage
Test if the server can handle a messages -
main
- Throws:
IOExceptionInterruptedException
-