本文整理汇总了Java中com.google.appengine.tools.development.testing.LocalSearchServiceTestConfig类的典型用法代码示例。如果您正苦于以下问题:Java LocalSearchServiceTestConfig类的具体用法?Java LocalSearchServiceTestConfig怎么用?Java LocalSearchServiceTestConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LocalSearchServiceTestConfig类属于com.google.appengine.tools.development.testing包,在下文中一共展示了LocalSearchServiceTestConfig类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createTestConfigs
import com.google.appengine.tools.development.testing.LocalSearchServiceTestConfig; //导入依赖的package包/类
/**
* Override to customise the test configs required.
*
* @return Test configs.
*/
protected List<LocalServiceTestConfig> createTestConfigs() {
List<LocalServiceTestConfig> results = new ArrayList<>();
LocalTaskQueueTestConfig queueConfig = new LocalTaskQueueTestConfig();
queueConfig.setQueueXmlPath("src/main/webapp/WEB-INF/queue.xml");
results.add(new LocalDatastoreServiceTestConfig().setApplyAllHighRepJobPolicy());
results.add(queueConfig);
results.add(new LocalMemcacheServiceTestConfig());
results.add(new LocalSearchServiceTestConfig());
return results;
}
示例2: setup
import com.google.appengine.tools.development.testing.LocalSearchServiceTestConfig; //导入依赖的package包/类
/**
* 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();
}
示例3: createTestConfigs
import com.google.appengine.tools.development.testing.LocalSearchServiceTestConfig; //导入依赖的package包/类
/**
* Override to customise the test configs required.
*
* @return
*/
protected List<LocalServiceTestConfig> createTestConfigs() {
List<LocalServiceTestConfig> results = new ArrayList<>();
LocalTaskQueueTestConfig queueConfig = new LocalTaskQueueTestConfig();
queueConfig.setQueueXmlPath("src/main/webapp/WEB-INF/queue.xml");
results.add(new LocalDatastoreServiceTestConfig().setApplyAllHighRepJobPolicy());
results.add(queueConfig);
results.add(new LocalMemcacheServiceTestConfig());
results.add(new LocalSearchServiceTestConfig());
return results;
}