コード例 #1
0
 public ChangeSetOpIterator advanceStatus(
     String className,
     String methodName,
     String from,
     Function1<IResource, JavaPadDocument> getDocument)
     throws JavaModelException {
   JavaPadDocument doc = getDocument.apply(project.findType(className).getUnderlyingResource());
   String to = STATUSES.get(STATUSES.indexOf(from) + 1);
   return doc.setAnnotation(
       new String[] {PACKAGE, from},
       new String[] {PACKAGE, to},
       className,
       methodName,
       new String[0]);
 }
コード例 #2
0
 private void reportRemove(Test test) {
   Workspace.scheduleTask("testResult", project.getProject(), test, null);
 }
コード例 #3
0
 private void reportAdd(Test test, TestResult result) {
   Workspace.scheduleTask("testResult", project.getProject(), test, result);
 }
コード例 #4
0
 /** Schedule test execution. */
 public void scheduleRun() {
   ContinuousTesting.getTester().runTests(project.getProject());
 }