Package com.google.appengine.tools.development.testing

Examples of com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig


     *
     * @return The new module.
     */
    public static AppEngineModule buildWithLocalTestEnvironment() {
        final AppEngineModule aem = new AppEngineModule();
        aem.helper = new LocalServiceTestHelper( new LocalDatastoreServiceTestConfig() );
        aem.helper.setUp();
        return aem;
    }
View Full Code Here


  @Before
  public void setUp()
  {
    if(simulateEventualConsistency())
      helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig().setAlternateHighRepJobPolicyClass(Policy.class));
    else
      helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig());
    helper.setUp();
  }
View Full Code Here

  private DummyDatastoreService dds;

  protected long runTest() throws Throwable
  {
    LocalServiceTestHelper helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig().setNoStorage(true));
    helper.setUp();
    os = ObjectStore.Factory.create();
    dds = new DummyDatastoreService();
    try
    {
View Full Code Here

      ObjectifyFilter.complete();
      appEngine.tearDown();
    }

    appEngine = new LocalServiceTestHelper(
        new LocalDatastoreServiceTestConfig())
        .setEnvEmail(emailAddress)
        .setEnvIsLoggedIn(authenticatedWithGoogle)
        .setEnvAuthDomain(domainName)
        .setEnvIsAdmin(admin)
        .setSimulateProdLatencies(true);
View Full Code Here

    LocalTaskQueueTestConfig taskQueueConfig = new LocalTaskQueueTestConfig();
    taskQueueConfig.setCallbackClass(TestingTaskQueueCallback.class);
    taskQueueConfig.setDisableAutoTaskExecution(false);
    taskQueueConfig.setShouldCopyApiProxyEnvironment(true);
    helper = new LocalServiceTestHelper(
        new LocalDatastoreServiceTestConfig()
            .setDefaultHighRepJobPolicyUnappliedJobPercentage(
                isHrdSafe() ? 100 : 0),
        taskQueueConfig, new LocalModulesServiceTestConfig());
  }
View Full Code Here

  public UserGuideTest() {
    LocalTaskQueueTestConfig taskQueueConfig = new LocalTaskQueueTestConfig();
    taskQueueConfig.setCallbackClass(TestingTaskQueueCallback.class);
    taskQueueConfig.setDisableAutoTaskExecution(false);
    taskQueueConfig.setShouldCopyApiProxyEnvironment(true);
    helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig(), taskQueueConfig,
        new LocalModulesServiceTestConfig());
  }
View Full Code Here

  public void setUp() throws Exception {
    super.setUp();
    LocalTaskQueueTestConfig taskQueueConfig = new LocalTaskQueueTestConfig();
    taskQueueConfig.setDisableAutoTaskExecution(true);
    taskQueueConfig.setShouldCopyApiProxyEnvironment(true);
    helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig(), taskQueueConfig,
        new LocalModulesServiceTestConfig());
    helper.setUp();
  }
View Full Code Here

  public RetryTest() {
    LocalTaskQueueTestConfig taskQueueConfig = new LocalTaskQueueTestConfig();
    taskQueueConfig.setCallbackClass(TestingTaskQueueCallback.class);
    taskQueueConfig.setDisableAutoTaskExecution(false);
    taskQueueConfig.setShouldCopyApiProxyEnvironment(true);
    helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig(), taskQueueConfig,
        new LocalModulesServiceTestConfig());
  }
View Full Code Here

    return "s~DNTest";
  }

  @Override
  protected LocalDatastoreServiceTestConfig newLocalDatastoreServiceTestConfig() {
    LocalDatastoreServiceTestConfig config = super.newLocalDatastoreServiceTestConfig();
    return config.setDefaultHighRepJobPolicyUnappliedJobPercentage(1);   
  }
View Full Code Here

  private boolean useHelper = true;

  private LocalServiceTestHelper helper;

  protected LocalDatastoreServiceTestConfig newLocalDatastoreServiceTestConfig() {
    return new LocalDatastoreServiceTestConfig();
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.