Package org.menacheri.jetserver.app.impl

Examples of org.menacheri.jetserver.app.impl.SimpleGame


  }

  @Test
  public void sessionDisconnectValidation() throws InterruptedException {
    // create necessary setup objects.
    Game game = new SimpleGame(1, "Test");
    Protocol dummyProtocol = new DummyProtocol();
    GameRoomSessionBuilder sessionBuilder = new GameRoomSessionBuilder();
    sessionBuilder.parentGame(game).gameRoomName("Zombie_ROOM_1")
        .protocol(dummyProtocol);
    CountDownLatch latch = new CountDownLatch(1);
View Full Code Here


  }

  @Test
  public void multiSessionDisconnectValidation() throws InterruptedException {
    // create necessary setup objects.
    Game game = new SimpleGame(1, "Test");
    Protocol dummyProtocol = new DummyProtocol();
    GameRoomSessionBuilder sessionBuilder = new GameRoomSessionBuilder();
    sessionBuilder.parentGame(game).gameRoomName("Zombie_ROOM_1")
        .protocol(dummyProtocol);
    CountDownLatch latch1 = new CountDownLatch(2);
View Full Code Here

  private List<Session> sessionList;

  @Before
  public void setUp()
  {
    game = new SimpleGame(1, "Test");
    gameRoomList = new ArrayList<GameRoom>(NUM_OF_GAME_ROOMS);
    sessionList = new ArrayList<Session>(NUM_OF_GAME_ROOMS
        * SESSIONS_PER_GAME_ROOM);
    for (int i = 1; i <= NUM_OF_GAME_ROOMS; i++)
    {
View Full Code Here

  @Qualifier("webSocketProtocol")
  private Protocol webSocketProtocol;
 
  public @Bean Game zombieGame()
  {
    Game game = new SimpleGame(1,"Zombie");
    return game;
  }
View Full Code Here

TOP

Related Classes of org.menacheri.jetserver.app.impl.SimpleGame

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.