use of com.google.appengine.tools.development.testing.LocalTaskQueueTestConfig in project teammates by TEAMMATES.
the class GaeSimulation method setup.
/**
* Sets up the GAE simulation.
*/
public synchronized void setup() {
System.out.println("Setting up GAE simulation");
LocalTaskQueueTestConfig localTasks = new LocalTaskQueueTestConfig();
localTasks.setQueueXmlPath(QUEUE_XML_PATH);
LocalUserServiceTestConfig localUserServices = new LocalUserServiceTestConfig();
LocalDatastoreServiceTestConfig localDatastore = new LocalDatastoreServiceTestConfig();
LocalMailServiceTestConfig localMail = new LocalMailServiceTestConfig();
LocalSearchServiceTestConfig localSearch = new LocalSearchServiceTestConfig();
localSearch.setPersistent(false);
LocalModulesServiceTestConfig localModules = new LocalModulesServiceTestConfig();
LocalLogServiceTestConfig localLog = new LocalLogServiceTestConfig();
helper = new LocalServiceTestHelper(localDatastore, localMail, localUserServices, localTasks, localSearch, localModules, localLog);
helper.setUp();
sc = new ServletRunner().newClient();
localLogService = LocalLogServiceTestConfig.getLocalLogService();
}
Aggregations