Package org.rugby.online.impl

Examples of org.rugby.online.impl.DefaultGamer


   */
  private DefaultGamer gamer;
 
  @Before
  public void setUp() throws Exception {
    gamer = new DefaultGamer("TEST_NAME");
  }
View Full Code Here


 
  private static long gamerId;
 
  @BeforeClass
  public static void before() {
    gamer = new DefaultGamer("TEST");
    gamerId = gamer.getId();
    strategy = DefaultPersistencyStrategy.getInstance();
    try {
      strategy.init();
    } catch (RboException e) {
View Full Code Here

  }

  @Test
  public void testGetObject() {
    try {
      DefaultGamer gamerTest = (DefaultGamer) strategy.getObject(DefaultGamer.class, gamerId);
      assertNotNull(gamerTest);
      assertEquals(gamer.getId(), gamerTest.getId());
      assertEquals(gamer.getName(), gamerTest.getName());
    } catch (RboException e) {
      RboLogger.parse(e);
    }
  }
View Full Code Here

  @Test
  public void testUpdateObject() {
    gamer.getStaffTeam().getStaff().add(new DefaultNonPlayer(RboProfession.MANAGEMENT_MAIN, Locale.FRENCH));
    try {
      strategy.updateObject(DefaultGamer.class, gamerId, gamer);
      DefaultGamer gamerTest = (DefaultGamer) strategy.getObject(DefaultGamer.class, gamerId);
      assertNotNull(gamerTest);
      assertEquals(gamer, gamerTest);
    } catch (RboException e) {
      RboLogger.parse(e);
    }
View Full Code Here

TOP

Related Classes of org.rugby.online.impl.DefaultGamer

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.