Home | History | Annotate | Download | only in framework

Lines Matching full:test

8  * a test case. It is an instance of the Collecting Parameter pattern.
9 * The test framework distinguishes between <i>failures</i> and <i>errors</i>.
13 * @see Test
33 public synchronized void addError(Test test, Throwable t) {
34 fErrors.addElement(new TestFailure(test, t));
36 ((TestListener)e.nextElement()).addError(test, t);
43 public synchronized void addFailure(Test test, AssertionFailedError t) {
44 fFailures.addElement(new TestFailure(test, t));
46 ((TestListener)e.nextElement()).addFailure(test, t);
68 * Informs the result that a test was completed.
70 public void endTest(Test test) {
72 ((TestListener)e.nextElement()).endTest(test);
102 protected void run(final TestCase test) {
103 startTest(test);
106 test.runBare();
109 runProtected(test, p);
111 endTest(test);
122 public void runProtected(final Test test, Protectable p) {
127 addFailure(test, e);
133 addError(test, e);
137 * Checks whether the test run should stop
143 * Informs the result that a test will be started.
145 public void startTest(Test test) {
146 final int count= test.countTestCases();
151 ((TestListener)e.nextElement()).startTest(test);
155 * Marks that the test run should stop.
161 * Returns whether the entire test was successful or not.