Examples of TaskStateInfo


Examples of com.google.appengine.api.taskqueue.dev.QueueStateInfo.TaskStateInfo

    @Test
    public void testWriteRequestWithDefaultWorkerRoot() throws Exception {
        exchange.getIn().setBody("anything");
        TaskOptions options = binding.writeRequest(endpoint, exchange, null);
        queue.add(options);
        TaskStateInfo info = getTaskStateInfos().get(0);
        assertEquals("/worker/test", info.getUrl());
    }
View Full Code Here

Examples of com.google.appengine.api.taskqueue.dev.QueueStateInfo.TaskStateInfo

    public void testWriteRequestWithCustomWorkerRoot() throws Exception {
        GTaskEndpoint custom = createEndpoint("test?workerRoot=lazy");
        exchange.getIn().setBody("anything");
        TaskOptions options = binding.writeRequest(custom, exchange, null);
        queue.add(options);
        TaskStateInfo info = getTaskStateInfos().get(0);
        assertEquals("/lazy/test", info.getUrl());
    }
View Full Code Here

Examples of com.google.appengine.api.taskqueue.dev.QueueStateInfo.TaskStateInfo

        assertEquals(chunks, queueInfo.getCountTasks());

        // 3. Manually processes the tasks
        List<TaskStateInfo> states = queueInfo.getTaskInfo();
        for (int i = 0; i < states.size(); i++) {
            TaskStateInfo taskInfo = states.get(i);
            Response response = executeTask(taskInfo);
            assertStatus(200, response);
            Map<String, List<String>> params = new QueryStringDecoder("http://dummy/a?" + taskInfo.getBody())
                .getParameters();
            Key first = KeyFactory.stringToKey(params.get(ChunkedRuleProcessor.pSTART_ID)
                                                     .get(0));
            Key last = KeyFactory.stringToKey(params.get(ChunkedRuleProcessor.pLAST_ID)
                                                     .get(0));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.