01: /*
02: * Enhydra Java Application Server Project
03: *
04: * The contents of this file are subject to the Enhydra Public License
05: * Version 1.1 (the "License"); you may not use this file except in
06: * compliance with the License. You may obtain a copy of the License on
07: * the Enhydra web site ( http://www.enhydra.org/ ).
08: *
09: * Software distributed under the License is distributed on an "AS IS"
10: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11: * the License for the specific terms governing rights and limitations
12: * under the License.
13: *
14: * The Initial Developer of the Enhydra Application Server is Lutris
15: * Technologies, Inc. The Enhydra Application Server and portions created
16: * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17: * All Rights Reserved.
18: */
19: package org.enhydra.zeus;
20:
21: import junit.framework.Test;
22: import junit.framework.TestCase;
23: import junit.framework.TestSuite;
24:
25: /**
26: * <p>
27: * <code>AbstractBinderTest</code> is an abstract test class that will
28: * be inherited by all test classes designed to test the Zeus binders.
29: * </p>
30: *
31: * @author Sean Ogle
32: */
33: public abstract class AbstractBinderTest extends TestCase {
34:
35: /**
36: * <p>
37: * This creates a new Binder to test.
38: * </p>
39: *
40: * @return <code>Binder</code> - the created <code>Binder</code>
41: */
42: public abstract Binder createBinder();
43:
44: /**
45: * <p>
46: * This creates the new <code>Binder</code>.
47: * </p>
48: *
49: * @param name the name to give the test in reports.
50: */
51: public AbstractBinderTest(String name) {
52: super (name);
53: }
54:
55: /**
56: * <p>
57: * This method maeks it easier to call these
58: * tests dynamically.
59: * </p>
60: *
61: * @return <code>TestSuite</code> - corresponds to this
62: * <code>TestCase</code>.
63: */
64: public static Test suite() {
65: return new TestSuite(AbstractBinderTest.class);
66: }
67: }
|