KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quilt > runner > MockTestRunner


1 /* MockTestRunner.java */
2
3 package org.quilt.runner;
4
5 import org.quilt.framework.QuiltTest;
6
7 /**
8  * Echoes parameters for a given QuiltTest back to the Ant user.
9  */

10 public class MockTestRunner extends QuiltTest {
11
12     public MockTestRunner () {}
13     
14     /**
15      * Set mockTestRunner="true" or mockExec="true" in the Quilt task
16      * line in build.xml to get this output on all tests run. Example:
17      *
18      * <quilt dir="." mockTestRunner="true" haltOnError="true"&gr;
19      *
20      * @param qt The QuiltTest being run
21      */

22     public void run (QuiltTest qt) {
23
24         System.out.println (" ** MockTestRunner **\n==== QuiltTest ==== \n"
25                                                                 + qt);
26     }
27 }
28
Popular Tags