@BeforeClass public void setUpGae() { helper.setEnvAttributes(GaeSimulation.getEnvironmentAttributesWithApplicationHostname()); helper.setUp(); }
/** * Sets up the GAE simulation. */ public void setup() { synchronized (this) { 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.setEnvAttributes(getEnvironmentAttributesWithApplicationHostname()); helper.setUp(); sc = new ServletRunner().newClient(); } }
@Override public void setUp() { helper = new LocalServiceTestHelper(new LocalUserServiceTestConfig(), createDatastoreService(), createTaskQueueTestConfig(), new LocalSearchServiceTestConfig(), new LocalModulesServiceTestConfig(), new LocalMemcacheServiceTestConfig(), new LocalURLFetchServiceTestConfig()); Map<String, Object> envs = new HashMap<>(); helper.setEnvAttributes(envs); helper.setUp(); }