Search in sources :

Example 1 with LocalLogServiceTestConfig

use of com.google.appengine.tools.development.testing.LocalLogServiceTestConfig 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();
}
Also used : LocalLogServiceTestConfig(com.google.appengine.tools.development.testing.LocalLogServiceTestConfig) LocalDatastoreServiceTestConfig(com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig) LocalUserServiceTestConfig(com.google.appengine.tools.development.testing.LocalUserServiceTestConfig) LocalTaskQueueTestConfig(com.google.appengine.tools.development.testing.LocalTaskQueueTestConfig) LocalServiceTestHelper(com.google.appengine.tools.development.testing.LocalServiceTestHelper) ServletRunner(com.meterware.servletunit.ServletRunner) LocalModulesServiceTestConfig(com.google.appengine.tools.development.testing.LocalModulesServiceTestConfig) LocalSearchServiceTestConfig(com.google.appengine.tools.development.testing.LocalSearchServiceTestConfig) LocalMailServiceTestConfig(com.google.appengine.tools.development.testing.LocalMailServiceTestConfig)

Aggregations

LocalDatastoreServiceTestConfig (com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig)1 LocalLogServiceTestConfig (com.google.appengine.tools.development.testing.LocalLogServiceTestConfig)1 LocalMailServiceTestConfig (com.google.appengine.tools.development.testing.LocalMailServiceTestConfig)1 LocalModulesServiceTestConfig (com.google.appengine.tools.development.testing.LocalModulesServiceTestConfig)1 LocalSearchServiceTestConfig (com.google.appengine.tools.development.testing.LocalSearchServiceTestConfig)1 LocalServiceTestHelper (com.google.appengine.tools.development.testing.LocalServiceTestHelper)1 LocalTaskQueueTestConfig (com.google.appengine.tools.development.testing.LocalTaskQueueTestConfig)1 LocalUserServiceTestConfig (com.google.appengine.tools.development.testing.LocalUserServiceTestConfig)1 ServletRunner (com.meterware.servletunit.ServletRunner)1