Package com.google.appengine.tck.taskqueue.support

Examples of com.google.appengine.tck.taskqueue.support.ExecDeferred


    @Test
    public void testDeferredDefault() {
        String testMethodTag = "testDefault";
        Map<String, String> paramMap = dsUtil.createParamMap(testMethodTag);

        TaskOptions taskOptions = TaskOptions.Builder.withPayload(new ExecDeferred(dsUtil, paramMap));

        QueueFactory.getDefaultQueue().add(taskOptions);
        Entity entity = dsUtil.waitForTaskThenFetchEntity(waitInterval, retryMax, testMethodTag);

        dsUtil.assertTaskParamsMatchEntityProperties(paramMap, entity);
View Full Code Here


    @Test
    public void testDeferredTaskWithNoName() {
        String testMethodTag = "testDeferredTaskWithNoName";
        Map<String, String> paramMap = dsUtil.createParamMap(testMethodTag);

        TaskOptions taskOptions = TaskOptions.Builder.withPayload(new ExecDeferred(dsUtil, paramMap));

        QueueFactory.getQueue(E2E_TESTING_DEFERRED).add(taskOptions);
        Entity entity = dsUtil.waitForTaskThenFetchEntity(waitInterval, retryMax, testMethodTag);

        dsUtil.assertTaskParamsMatchEntityProperties(paramMap, entity);
View Full Code Here

    public void testDeferredTaskNameSpecified() {
        String taskName = "This_is_my_deferred_task_name_" + testRunId;
        String testMethodTag = "testDeferredTaskNameSpecified";
        Map<String, String> paramMap = dsUtil.createParamMap(testMethodTag);

        TaskOptions taskOptions = TaskOptions.Builder.withTaskName(taskName).payload(new ExecDeferred(dsUtil, paramMap));

        QueueFactory.getQueue(E2E_TESTING_DEFERRED).add(taskOptions);
        Entity entity = dsUtil.waitForTaskThenFetchEntity(waitInterval, retryMax, testMethodTag);

        Map<String, String> expectedMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
View Full Code Here

        String specifiedNameSpace = "the_testDeferredUserNS";
        Map<String, String> paramMap = dsUtil.createParamMap(testMethodTag);

        NamespaceManager.set(specifiedNameSpace);

        TaskOptions taskOptions = TaskOptions.Builder.withPayload(new ExecDeferred(dsUtil, paramMap));

        // no task name specified.
        QueueFactory.getQueue(E2E_TESTING_DEFERRED).add(taskOptions);
        Entity entity = dsUtil.waitForTaskThenFetchEntity(waitInterval, retryMax, testMethodTag);
View Full Code Here

TOP

Related Classes of com.google.appengine.tck.taskqueue.support.ExecDeferred

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.