01: /*
02: * @(#)Sample4IUTestI.java
03: *
04: * Original author is Matt Albrecht
05: * groboclown@users.sourceforge.net
06: * http://groboutils.sourceforge.net
07: *
08: * This code sample has been submitted to the public domain, to show
09: * 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: * Tests the Sample4 interface.
24: * <P>
25: * Formatted for 70-column publication.
26: *
27: * @author Matt Albrecht <a href="mailto:groboclown@users.sourceforge.net">groboclown@users.sourceforge.net</a>
28: * @since July 21, 2002
29: * @version $Date: 2002/07/28 22:43:58 $
30: */
31: public class Sample4IUTestI extends InterfaceTestCase {
32: private static final Class THIS_CLASS = Sample4IUTestI.class;
33:
34: public Sample4IUTestI(String name, ImplFactory f) {
35: super (name, Sample4.class, f);
36: }
37:
38: protected Sample4 createSample4() {
39: return (Sample4) createImplObject();
40: }
41:
42: //---------------------------------------------------------------
43: // Tests
44:
45: public void testProcessString1() {
46: Sample4 s4 = createSample4();
47: s4.processStrings();
48: }
49:
50: public static InterfaceTestSuite suite() {
51: InterfaceTestSuite suite = new InterfaceTestSuite(THIS_CLASS);
52: return suite;
53: }
54: }
|