当前位置: 首页>>代码示例>>Java>>正文


Java LocalSearchServiceTestConfig类代码示例

本文整理汇总了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;
}
 
开发者ID:n15g,项目名称:spring-boot-gae,代码行数:17,代码来源:SetupAppengine.java

示例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();
}
 
开发者ID:TEAMMATES,项目名称:teammates,代码行数:24,代码来源:GaeSimulation.java

示例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;
}
 
开发者ID:monPlan,项目名称:springboot-spwa-gae-demo,代码行数:17,代码来源:SetupAppengine.java


注:本文中的com.google.appengine.tools.development.testing.LocalSearchServiceTestConfig类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。