Package gobo

Examples of gobo.ControllerTester


  }

  @Test
  public void runMoreThan5TasksTest() throws Exception {

    ControllerTester tester = new ControllerTester();
    String[] kinds =
      {
        "Kind1",
        "Kind2",
        "Kind3",
        "kind4",
        "Kind5",
        "Kind6",
        "Kind7",
        "Kind8",
        "Kind9",
        "Kind10" };
    tester.request.setParameter("kindArray", kinds);

    String run = tester.start("/drop/start");
    assertNotNull(run);
   
    TaskQueueUtil.removeTasks();
  }
View Full Code Here


    SpreadsheetEntry ssEntry = SpreadsheetUtil.createSpreadsheet(authSubToken, kinds);
    try {
      Key controlKey =
        TaskQueueUtil.prepareRestoreControlKey("TestKind1", ssEntry.getKey(), authSubToken);

      ControllerTester tester = new ControllerTester();
      tester.request.setParameter("controlKey", KeyFactory.keyToString(controlKey));

      String run = tester.start("/tasks/restoreEnd");
      assertNull(run);

      LocalTaskQueue ltq = LocalTaskQueueTestConfig.getLocalTaskQueue();
      String defaultQueueName = QueueFactory.getDefaultQueue().getQueueName();
      QueueStateInfo qsi = ltq.getQueueStateInfo().get(defaultQueueName);
View Full Code Here

TOP

Related Classes of gobo.ControllerTester

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.