Package marauroa.server.game.db

Examples of marauroa.server.game.db.DatabaseFactory


      System.exit(1);
    }

    // Check access to database is possible.
    try {
      new DatabaseFactory().initializeDatabase();
    } catch (DatabaseConnectionException e) {
      System.out.println("ERROR: Marauroa can't connect to database");
      System.out.println("Verify \"server.ini\" file to make sure access to database is possible.");
      System.exit(1);
    }
View Full Code Here


   * @throws IOException
   *
   */
  @BeforeClass
  public static void setUp() throws IOException {
    new DatabaseFactory().initializeDatabase();
    PlayerEntryContainer.getContainer();
    loadRSAKey();
  }
View Full Code Here

  private List<RPObject> players;

  private RPServerManager rpman;

  public PingRPRuleProcessor() {
    new DatabaseFactory().initializeDatabase();
    transactionPool = TransactionPool.get();
    world = BareRPWorld.get();

    DBTransaction transaction = transactionPool.beginWork();
    try {
View Full Code Here

  private List<RPObject> players;

  private RPServerManager rpman;

  public BareRPRuleProcessor() {
    new DatabaseFactory().initializeDatabase();
    transactionPool = TransactionPool.get();
    world = BareRPWorld.get();

    DBTransaction transaction = transactionPool.beginWork();
    try {
View Full Code Here

   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    MockStendlRPWorld.get();
    new DatabaseFactory().initializeDatabase();
  }
View Full Code Here

  private static final String TEST_ENTITY_HELPER = "test_entity_helper";
 
  @BeforeClass
  public static void setUpBeforeClass() {
    MockStendlRPWorld.get();
    new DatabaseFactory().initializeDatabase();
  }
View Full Code Here

   *
   * @throws Exception
   */
  @BeforeClass
  public static void buildWorld() throws Exception {
    new DatabaseFactory().initializeDatabase();
    setupZone(ZONE_NAME);
  }
View Full Code Here

public class CharacterCreatorTest {

  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    Log4J.init();
    new DatabaseFactory().initializeDatabase();
    PlayerTestHelper.generatePlayerRPClasses();
    ItemTestHelper.generateRPClasses();
  }
View Full Code Here

public class GhostModeActionTest {

  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    new DatabaseFactory().initializeDatabase();
    MockStendlRPWorld.get();
  }
View Full Code Here

  private static final String SSSHH_COME_HERE = "Ssshh! Come here, player! I have a #task for you.";

  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    Log4J.init();
    new DatabaseFactory().initializeDatabase();
    ItemTestHelper.generateRPClasses();

    MockStendhalRPRuleProcessor.get();
    MockStendlRPWorld.get();
View Full Code Here

TOP

Related Classes of marauroa.server.game.db.DatabaseFactory

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.