01: // jTDS JDBC Driver for Microsoft SQL Server and Sybase
02: // Copyright (C) 2004 The jTDS Project
03: //
04: // This library is free software; you can redistribute it and/or
05: // modify it under the terms of the GNU Lesser General Public
06: // License as published by the Free Software Foundation; either
07: // version 2.1 of the License, or (at your option) any later version.
08: //
09: // This library is distributed in the hope that it will be useful,
10: // but WITHOUT ANY WARRANTY; without even the implied warranty of
11: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: // Lesser General Public License for more details.
13: //
14: // You should have received a copy of the GNU Lesser General Public
15: // License along with this library; if not, write to the Free Software
16: // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: //
18: package net.sourceforge.jtds.test;
19:
20: import java.util.Properties;
21:
22: /**
23: * Abstract class used to test the default properties set on a variety of methods.
24: * <p/>
25: * Implements the Command pattern.
26: *
27: * @author David D. Kilzer
28: * @version $Id: DefaultPropertiesTester.java,v 1.3 2004/08/24 17:45:07 bheineman Exp $
29: */
30: public abstract class DefaultPropertiesTester {
31:
32: /**
33: * Asserts that a default property is set properly.
34: *
35: * @param message The message to display if the default property is not set.
36: * @param url The JDBC url.
37: * @param properties The initial properties set before testing the method.
38: * @param fieldName The field name of the object if using reflection.
39: * @param key The message key used to obtain the property name.
40: * @param expected The expected value.
41: */
42: public abstract void assertDefaultProperty(String message,
43: String url, Properties properties, String fieldName,
44: String key, String expected);
45:
46: }
|