KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* MockTestRunner.java */
2
3 package org.quilt.textui;
4
5 import java.util.Vector JavaDoc;
6
7 import org.quilt.framework.QuiltTest;
8 import org.quilt.runner.*;
9
10 /** Minimal test runner; just echoes the test description. */
11
12 public class MockTestRunner extends Textui implements RunnerConst {
13
14     public MockTestRunner () { }
15    
16     public static void main (String JavaDoc [] args ) {
17         System.exit( new MockTestRunner().handleArgs(args) );
18     }
19
20     int runWithIt (QuiltTest qt, Vector JavaDoc myFormatters) {
21         int fmtCount = myFormatters.size();
22         System.out.println ("==== MockTestRunner ====\n"
23             + " there are " + fmtCount + " formatters\n"
24             + qt );
25         return SUCCESS;
26     }
27 }
28
Popular Tags