1 11 package org.eclipse.jdt.junit.model; 12 13 14 25 public interface ITestElement { 26 27 30 public static final class ProgressState { 31 32 public static final ProgressState NOT_STARTED= new ProgressState("Not Started"); 34 public static final ProgressState RUNNING= new ProgressState("Running"); 36 public static final ProgressState STOPPED= new ProgressState("Stopped"); 38 public static final ProgressState COMPLETED= new ProgressState("Completed"); 40 private String fName; 41 private ProgressState(String name) { 42 fName= name; 43 } 44 public String toString() { 45 return fName; 46 } 47 } 48 49 52 public static final class Result { 53 54 public static final Result UNDEFINED= new Result("Undefined"); 56 public static final Result OK= new Result("OK"); 58 public static final Result ERROR= new Result("Error"); 60 public static final Result FAILURE= new Result("Failure"); 62 public static final Result IGNORED= new Result("Ignored"); 64 private String fName; 65 private Result(String name) { 66 fName= name; 67 } 68 public String toString() { 69 return fName; 70 } 71 } 72 73 78 public static final class FailureTrace { 79 private final String fActual; 80 private final String fExpected; 81 private final String fTrace; 82 83 public FailureTrace(String trace, String expected, String actual) { 84 fActual= actual; 85 fExpected= expected; 86 fTrace= trace; 87 } 88 89 94 public String getTrace() { 95 return fTrace; 96 } 97 98 103 public String getExpected() { 104 return fExpected; 105 } 106 107 112 public String getActual() { 113 return fActual; 114 } 115 } 116 117 128 public ProgressState getProgressState(); 129 130 146 public Result getTestResult(boolean includeChildren); 147 148 153 public FailureTrace getFailureTrace(); 154 155 160 public ITestElementContainer getParentContainer(); 161 162 167 public ITestRunSession getTestRunSession(); 168 169 } 170 | Popular Tags |