KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mockobjects > util > TestCaseMo


1 package com.mockobjects.util;
2
3 import junit.framework.*;
4 import junit.awtui.TestRunner;
5 import com.mockobjects.Verifiable;
6
7 /**
8  * Provides a level of indirection from TestCase so you can accomodate
9  * JUnit interface changes (like the change from 2.x to 3.1)
10  */

11
12 public abstract class TestCaseMo extends TestCase {
13
14     public TestCaseMo(String JavaDoc name) {
15         super(name);
16     }
17
18     public void assertVerifyFails(Verifiable aVerifiable) {
19         AssertMo.assertVerifyFails(aVerifiable);
20     }
21
22     public void assertFails(String JavaDoc message, Runnable JavaDoc runnable) {
23         AssertMo.assertFails(message, runnable);
24     }
25
26     public static void start(String JavaDoc[] testNames) {
27         TestRunner.main(testNames);
28     }
29 }
30
Popular Tags