public abstract class DefaultPropertiesTestLibrary
extends TestCase
DefaultPropertiesTester object to test different methods
 in different classes.
 
 To extend this class, the programmer must implement the following items:
 #tester field in a public default
     constructor that takes no arguments.public static Test suite() method that takes one or more
     arguments.  (The suite() method in this class should
     not be overridden.)| Modifier and Type | Field and Description | 
|---|---|
| private boolean | onlySqlServerTestsIf true, only run tests for SQL Server, not Sybase. | 
| private boolean | onlyTds70TestsIf true, only run tests for TDS 7.0. | 
| private DefaultPropertiesTester | testerObject used to run all of the tests. | 
| private static java.lang.String | URL_SQLSERVERTest JDBC URL for SQL Server. | 
| private static java.lang.String | URL_SYBASETest JDBC URL for Sybase. | 
| Constructor and Description | 
|---|
| DefaultPropertiesTestLibrary()Default constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| private void | assertDefaultPropertyByServerType(java.lang.String url,
                                 java.lang.String key,
                                 java.lang.String fieldName,
                                 java.lang.String expected)Assert that the  expectedproperty value is set using
 a givenurl. | 
| private void | assertDefaultPropertyByTdsVersion(java.lang.String url,
                                 java.lang.String tdsVersion,
                                 java.lang.String key,
                                 java.lang.String fieldName,
                                 java.lang.String expected)Assert that the  expectedproperty value is set using
 a givenurlandtdsVersionproperty. | 
| protected DefaultPropertiesTester | getTester()Getter for  tester. | 
| boolean | isOnlySqlServerTests()Getter for  #onlySqlServerTests. | 
| boolean | isOnlyTds70Tests()Getter for  #onlyTds70Tests. | 
| protected void | setOnlySqlServerTests(boolean onlySqlServerTests)Setter for  onlySqlServerTests. | 
| protected void | setOnlyTds70Tests(boolean onlyTds70Tests)Setter for  onlyTds70Tests. | 
| void | setTester(DefaultPropertiesTester tester)Setter for  #tester. | 
| static Test | suite()Provides a null test suite so that JUnit will not try to instantiate
 this class directly. | 
| void | test_appName()Test the  appNameproperty. | 
| void | test_batchSize()Test the  batchSizeproperty. | 
| void | test_bindAddress()Test the  bindAddressproperty. | 
| void | test_bufferDir()Test the  bufferDirproperty. | 
| void | test_bufferMaxMemory()Test the  bufferMaxMemoryproperty. | 
| void | test_bufferMinPackets()Test the  bufferMinPacketsproperty. | 
| void | test_cacheMetaData()Test the  cacheMetaDataproperty. | 
| void | test_databaseName()Test the  databaseNameproperty. | 
| void | test_lastUpdateCount()Test the  lastUpdateCountproperty. | 
| void | test_lobBuffer()Test the  lobBufferproperty. | 
| void | test_loginTimeout()Test the  loginTimeoutproperty. | 
| void | test_macAddress()Test the  macAddressproperty. | 
| void | test_namedPipe()Test the  namedPipeproperty. | 
| void | test_packetSize()Test the  packetSizeproperty. | 
| void | test_portNumber()Test the  portNumberproperty. | 
| void | test_prepareSql()Test the  prepareSqlproperty. | 
| void | test_processId()Test the  processIdproperty. | 
| void | test_progName()Test the  progNameproperty. | 
| void | test_sendStringParametersAsUnicode()Test the  sendStringParametersAsUnicodeproperty. | 
| void | test_serverType()Test the  serverTypeproperty. | 
| void | test_socketKeepAlive()Test the  socketKeepAliveproperty. | 
| void | test_socketTimeout()Test the  socketTimeoutproperty. | 
| void | test_tcpNoDelay()Test the  tcpNoDelayproperty. | 
| void | test_tds()Test the  tds(version) property. | 
| void | test_useCursors()Test the  useCursorsproperty. | 
| void | test_useJCIFS()Test the  useJCIFSproperty. | 
| void | test_useLOBs()Test the  useLOBsproperty. | 
| void | test_wsid()Test the  wsidproperty. | 
private static final java.lang.String URL_SQLSERVER
private static final java.lang.String URL_SYBASE
private DefaultPropertiesTester tester
private boolean onlySqlServerTests
private boolean onlyTds70Tests
public DefaultPropertiesTestLibrary()
#tester
 field in a public default constructor.public static final Test suite()
null).public void test_serverType()
serverType property.
 
 Different values are set depending on whether SQL Server or
 Sybase is used.public void test_tds()
tds (version) property.public void test_portNumber()
portNumber property.
 
 Different values are set depending on whether SQL Server or
 Sybase is used.public void test_databaseName()
databaseName property.public void test_appName()
appName property.public void test_bindAddress()
bindAddress property.public void test_lastUpdateCount()
lastUpdateCount property.public void test_lobBuffer()
lobBuffer property.public void test_loginTimeout()
loginTimeout property.public void test_socketTimeout()
socketTimeout property.public void test_socketKeepAlive()
socketKeepAlive property.public void test_processId()
processId property.public void test_macAddress()
macAddress property.public void test_namedPipe()
namedPipe property.public void test_packetSize()
packetSize property.public void test_prepareSql()
prepareSql property.public void test_progName()
progName property.public void test_sendStringParametersAsUnicode()
sendStringParametersAsUnicode property.public void test_batchSize()
batchSize property.public void test_bufferDir()
bufferDir property.public void test_bufferMaxMemory()
bufferMaxMemory property.public void test_bufferMinPackets()
bufferMinPackets property.public void test_cacheMetaData()
cacheMetaData property.public void test_tcpNoDelay()
tcpNoDelay property.public void test_useCursors()
useCursors property.public void test_useJCIFS()
useJCIFS property.public void test_useLOBs()
useLOBs property.public void test_wsid()
wsid property.private void assertDefaultPropertyByTdsVersion(java.lang.String url,
                                     java.lang.String tdsVersion,
                                     java.lang.String key,
                                     java.lang.String fieldName,
                                     java.lang.String expected)
expected property value is set using
 a given url and tdsVersion property.url - The JDBC URL.tdsVersion - The TDS version.key - The message key.fieldName - The field name used in the class.expected - The expected value of the property.private void assertDefaultPropertyByServerType(java.lang.String url,
                                     java.lang.String key,
                                     java.lang.String fieldName,
                                     java.lang.String expected)
expected property value is set using
 a given url.url - The JDBC URL.key - The message key.fieldName - The field name used in the class.expected - The expected value of the property.protected DefaultPropertiesTester getTester()
tester.tester.public void setTester(DefaultPropertiesTester tester)
#tester.tester - The value to set #tester to.public boolean isOnlySqlServerTests()
#onlySqlServerTests.#onlySqlServerTests.protected void setOnlySqlServerTests(boolean onlySqlServerTests)
onlySqlServerTests.onlySqlServerTests - The value to set onlySqlServerTests to.public boolean isOnlyTds70Tests()
#onlyTds70Tests.#onlyTds70Tests.protected void setOnlyTds70Tests(boolean onlyTds70Tests)
onlyTds70Tests.onlyTds70Tests - The value to set onlyTds70Tests to.Generated on June 8 2013