Java Code Examples for com.google.appengine.tools.development.testing.LocalTaskQueueTestConfig#setDisableAutoTaskExecution()
The following examples show how to use
com.google.appengine.tools.development.testing.LocalTaskQueueTestConfig#setDisableAutoTaskExecution() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RetryTest.java From appengine-pipelines with Apache License 2.0 | 5 votes |
public RetryTest() { LocalTaskQueueTestConfig taskQueueConfig = new LocalTaskQueueTestConfig(); taskQueueConfig.setCallbackClass(TestingTaskQueueCallback.class); taskQueueConfig.setDisableAutoTaskExecution(false); taskQueueConfig.setShouldCopyApiProxyEnvironment(true); helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig(), taskQueueConfig, new LocalModulesServiceTestConfig()); }
Example 2
Source File: UserGuideTest.java From appengine-pipelines with Apache License 2.0 | 5 votes |
public UserGuideTest() { LocalTaskQueueTestConfig taskQueueConfig = new LocalTaskQueueTestConfig(); taskQueueConfig.setCallbackClass(TestingTaskQueueCallback.class); taskQueueConfig.setDisableAutoTaskExecution(false); taskQueueConfig.setShouldCopyApiProxyEnvironment(true); helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig(), taskQueueConfig, new LocalModulesServiceTestConfig()); }
Example 3
Source File: PipelineTest.java From appengine-pipelines with Apache License 2.0 | 5 votes |
public PipelineTest() { 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()); }
Example 4
Source File: AppEngineTaskQueueTest.java From appengine-pipelines with Apache License 2.0 | 5 votes |
@Override 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(); }