stendhal/tests/utilities/QuestHelper.java

48 lines
1.7 KiB
Java
Raw Normal View History

2010-09-19 01:29:21 +00:00
/* $Id$ */
/***************************************************************************
* (C) Copyright 2003-2010 - Stendhal *
***************************************************************************
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
2007-11-30 22:10:36 +00:00
package utilities;
2017-05-28 01:03:01 +02:00
import org.junit.BeforeClass;
import games.stendhal.server.core.engine.SingletonRepository;
2007-11-30 22:10:36 +00:00
import games.stendhal.server.maps.MockStendhalRPRuleProcessor;
import games.stendhal.server.maps.MockStendlRPWorld;
2007-11-30 22:10:36 +00:00
import marauroa.common.Log4J;
import marauroa.server.game.db.DatabaseFactory;
import utilities.RPClass.ItemTestHelper;
2007-11-30 22:10:36 +00:00
/**
2007-12-28 11:48:39 +00:00
* Helper methods for testing quests.
2007-11-30 22:10:36 +00:00
*
* @author hendrik
*/
public abstract class QuestHelper extends PlayerTestHelper {
2017-05-28 01:03:01 +02:00
@BeforeClass
public static void setUpBeforeClass() throws Exception {
2007-11-30 22:10:36 +00:00
Log4J.init();
new DatabaseFactory().initializeDatabase();
MockStendlRPWorld.get();
generatePlayerRPClasses();
ItemTestHelper.generateRPClasses();
generateNPCRPClasses();
2008-05-23 10:01:45 +00:00
MockStendhalRPRuleProcessor.get();
// load item configurations to handle money and other items
SingletonRepository.getEntityManager();
SingletonRepository.getNPCList().clear();
2007-11-30 22:10:36 +00:00
}
}