KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)Sample3Impl.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 uses
9  * 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 /**
19  * Sample implementation. Must provide a constructor that takes a
20  * string array as the only argument.
21  * <P>
22  * Formatted for 70-column publication.
23  *
24  * @author Matt Albrecht <a HREF="mailto:groboclown@users.sourceforge.net">groboclown@users.sourceforge.net</a>
25  * @since July 21, 2002
26  * @version $Date: 2002/07/28 22:43:58 $
27  */

28 public class Sample3Impl extends Sample3 implements Sample2, Sample4 {
29     private String JavaDoc[] defaultStrings;
30
31     public Sample3Impl() {}
32     public Sample3Impl( String JavaDoc s[] ) {
33         this.defaultStrings = s;
34     }
35     
36     public String JavaDoc[] getStrings() {
37         return this.defaultStrings;
38     }
39     
40     public void processStrings() {
41         // do nothing
42
}
43 }
44
45
Popular Tags