KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > csdl > foo > TestBar


1 package csdl.foo;
2
3 import junit.framework.TestCase;
4 import csdl.foo.Bar;
5
6 /**
7  * Provides one test case for class Bar.
8  *
9  * @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 JavaDoc 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 JavaDoc {
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 }
41
Popular Tags