KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junitx > extensions > ComparabilityTestCaseTest


1 package junitx.extensions;
2
3 /**
4  * @version $Revision: 1.1 $ $Date: 2003/02/05 10:27:29 $
5  * @author <a HREF="mailto:pholser@yahoo.com">Paul Holser</a>
6  */

7 public class ComparabilityTestCaseTest
8         extends ComparabilityTestCase {
9
10     public ComparabilityTestCaseTest(String JavaDoc name) {
11         super(name);
12     }
13
14     protected Comparable JavaDoc createLessInstance() {
15         return new Foo(1);
16     }
17
18     protected Comparable JavaDoc createEqualInstance() {
19         return new Foo(2);
20     }
21
22     protected Comparable JavaDoc createGreaterInstance() {
23         return new Foo(3);
24     }
25
26 }
27
Popular Tags