Examples of TaskQueueAddRequest


Examples of com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest

        Key minutesKey = MinutesService.put(" テスト用議事録1");
        int before = tester.tasks.size();
        Key memoKey = MemoService.put(minutesKey, " メモ1");
        int after = tester.tasks.size();
        assertThat(" タスクが二件増える", after, is(before + 2));
        TaskQueueAddRequest task;
        task = tester.tasks.get(0);
        assertThat(
            " メモ件数を加算するタスクのURL",
            task.getUrl(),
            is("/tq/IncrementMemoCount"));
        assertThat(" メモ件数を加算するタスクのパラメータ", task.getBody(), is("minutesKey="
            + Datastore.keyToString(minutesKey)));
        task = tester.tasks.get(1);
        assertThat(" 形態素解析するタスクのURL", task.getUrl(), is("/tq/Yahoo"));
        assertThat(" 形態素解析するタスクのパラメータ", task.getBody(), is("memoKey="
            + Datastore.keyToString(memoKey)));
        assertThat(" 形態素解析するタスクのqueue 名", task.getQueueName(), is("parse"));
    }
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.