Package org.vbs.cqpm.tasks

Examples of org.vbs.cqpm.tasks.ProcessCheckTask


  } catch (InterruptedException e) {
      logger.error("Thread error: " + e.getMessage());
  }

  // Test process check task status
  ProcessCheckTask task1 = processCheckTaskList.get(0);
  ScheduledFuture<?> future1 = task1.getScheduledFuture();
  ProcessCheckTask task2 = processCheckTaskList.get(1);
  ScheduledFuture<?> future2 = task2.getScheduledFuture();

  assertTrue("Scheduled task should be cancelled because of timeout.", future1.isCancelled());
  assertTrue("Scheduled task should be cancelled because of timeout.", future2.isCancelled());
    }
View Full Code Here


  } catch (InterruptedException e) {
      logger.error("Thread error: " + e.getMessage());
  }

  // Test process failed status
  ProcessCheckTask task1 = processCheckTaskList.get(2);
  Process proc1 = task1.getProcess();

  assertTrue("Process should has failed.", proc1.failed() == true);
    }
View Full Code Here

TOP

Related Classes of org.vbs.cqpm.tasks.ProcessCheckTask

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.