Package Model.tests

Class HostServerTest

java.lang.Object
Model.tests.HostServerTest

public class HostServerTest extends Object
  • Constructor Details

    • HostServerTest

      public HostServerTest()
  • Method Details

    • testSendToAllPlayers

      public static void testSendToAllPlayers(MyServer server, HostModel hostModel, int hostServerPort)
      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

      public static void testCheckForMessage(MyServer server, HostModel hostModel, int hostServerPort)
      Test if the server can handle a messages
    • main

      public static void main(String[] args) throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException