Exemplo n.º 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]);
 }
Exemplo n.º 2
0
 private void reportRemove(Test test) {
   Workspace.scheduleTask("testResult", project.getProject(), test, null);
 }
Exemplo n.º 3
0
 private void reportAdd(Test test, TestResult result) {
   Workspace.scheduleTask("testResult", project.getProject(), test, result);
 }
Exemplo n.º 4
0
 /** Schedule test execution. */
 public void scheduleRun() {
   ContinuousTesting.getTester().runTests(project.getProject());
 }