Package models.data

Examples of models.data.Player


  }

  @Test
  public void createAndStartGameSuccess() {
   
    Player player = new Player();
    player.setEmail("player1@columbia.edu");
    player.setId(1);
   
    Mockito.when(UserManager.getCurrentLoggedInUser()).thenReturn(
        player);
   
    Game game = gameManager.createFixedTimeChallengeGame(gameForm);
View Full Code Here


        if (user != null) {
            return ApplicationConstants.USER_ALREADY_REGISTERED;
        }

        //do registration
        user = new Player();
        user.setFirstName(firstName);
        user.setLastName(lastName);
        user.setEmail(email);
        user.setPassword(password);
        user.setIsEnabled(ApplicationConstants.TRUE);
View Full Code Here

  /**
     * test if a player can still join a game
     *
     */
    public void validecanJoinGame() {
      Assert.assertTrue((new Game()).canJoinGame(new Player()));
    }
View Full Code Here

    }
    /**
     * Test if a player join game normally
     */
    public void validjoinGame() {
      Assert.assertTrue((new Game()).joinGame(new Player())!=null);
    }
View Full Code Here

TOP

Related Classes of models.data.Player

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.