KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > groboutils > junit > v1 > iftc > Sample4IUTestI


1 /*
2  * @(#)Sample4IUTestI.java
3  *
4  * Original author is Matt Albrecht
5  * groboclown@users.sourceforge.net
6  * http://groboutils.sourceforge.net
7  *
8  * This code sample has been submitted to the public domain, to show
9  * uses for the Interface testing framework.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  */

15
16 package net.sourceforge.groboutils.junit.v1.iftc;
17
18 import junit.framework.Test;
19 import junit.framework.TestCase;
20 import junit.framework.TestSuite;
21
22
23 /**
24  * Tests the Sample4 interface.
25  * <P>
26  * Formatted for 70-column publication.
27  *
28  * @author Matt Albrecht <a HREF="mailto:groboclown@users.sourceforge.net">groboclown@users.sourceforge.net</a>
29  * @since July 21, 2002
30  * @version $Date: 2002/07/28 22:43:58 $
31  */

32 public class Sample4IUTestI extends InterfaceTestCase {
33     private static final Class JavaDoc THIS_CLASS = Sample4IUTestI.class;
34     
35     public Sample4IUTestI( String JavaDoc name, ImplFactory f ) {
36         super( name, Sample4.class, f );
37     }
38
39     protected Sample4 createSample4() {
40         return (Sample4)createImplObject();
41     }
42
43     //---------------------------------------------------------------
44
// Tests
45

46     public void testProcessString1() {
47         Sample4 s4 = createSample4();
48         s4.processStrings();
49     }
50     
51     public static InterfaceTestSuite suite() {
52         InterfaceTestSuite suite =
53             new InterfaceTestSuite( THIS_CLASS );
54         return suite;
55     }
56 }
57
58
Popular Tags