01: package csdl.foo;
02:
03: import junit.framework.TestCase;
04: import csdl.foo.Bar;
05:
06: /**
07: * Provides one test case for class Bar.
08: *
09: * @author Joy M. Agustin
10: * @version $Id: TestBar.java,v 1.4 2004/11/07 08:53:27 timshadel Exp $
11: */
12: public abstract class TestBar extends TestCase {
13:
14: /**
15: * Required by JUnit.
16: *
17: * @param name Description of the Parameter
18: */
19: public TestBar(String name) {
20: super (name);
21: }
22:
23: /**
24: * Prints out method name to screen, creates an instance of the Bar class, calls the main method
25: * in Bar, and then performs a meaningless test.
26: *
27: * @throws Exception Description of the Exception
28: */
29: public void testBar() throws Exception {
30: System.out.println("TestFooBar: testFoo");
31: Bar bar = new Bar();
32: Bar.main(null);
33: assertEquals("meaningless test", 1, 1);
34: }
35:
36: public abstract int oneAbstract();
37:
38: public void oneVoid() {
39: }
40: }
|