org.apache.derbyTesting.functionTests.tests.jdbcapi
Class DataSourcePropertiesTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.derbyTesting.junit.BaseTestCase
              extended by org.apache.derbyTesting.junit.BaseJDBCTestCase
                  extended by org.apache.derbyTesting.functionTests.tests.jdbcapi.DataSourcePropertiesTest
All Implemented Interfaces:
junit.framework.Test

public class DataSourcePropertiesTest
extends BaseJDBCTestCase

This class tests that properties of data sources are handled correctly.


Field Summary
 
Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
 
Constructor Summary
DataSourcePropertiesTest(java.lang.String name)
          Creates a new test case.
 
Method Summary
 void embeddedTestAttributesAsPasswordWithoutPassword_ds()
          Tests that the default password is not sent as an attribute string when attributesAsPassword is true.
 void embeddedTestAttributesAsPasswordWithoutPassword_pooled()
          Tests that the default password is not sent as an attribute string when attributesAsPassword is true.
 void embeddedTestAttributesAsPasswordWithoutPassword_xa()
          Tests that the default password is not sent as an attribute string when attributesAsPassword is true.
 void embeddedTestAttributesAsPasswordWithPassword_ds()
          Tests that the attributesAsPassword property of a DataSource causes an explicitly specified password to be sent as a property string.
 void embeddedTestAttributesAsPasswordWithPassword_pooled()
          Tests that the attributesAsPassword property of a ConnectionPoolDataSource causes an explicitly specified password to be sent as a property string.
 void embeddedTestAttributesAsPasswordWithPassword_xa()
          Tests that the attributesAsPassword property of an XADataSource causes an explicitly specified password to be sent as a property string.
static junit.framework.Test suite()
          Creates a test suite with all test cases only running in embedded at the moment.
 
Methods inherited from class org.apache.derbyTesting.junit.BaseJDBCTestCase
assertCallError, assertCheckTable, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertGetIntError, assertNextError, assertPreparedStatementError, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertTableRowCount, assertUpdateCount, assertUpdateCount, checkAllConsistency, checkEstimatedRowCount, commit, createStatement, createStatement, createStatement, dropTable, dropTable, getConnection, getDatabaseProperty, getLastSQLException, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbedded
 
Methods inherited from class org.apache.derbyTesting.junit.BaseTestCase
alarm, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertSecurityManager, assertThrowableEquals, execJavaCmd, fail, getFailureFolder, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeSystemProperty, runBare, setSystemProperty, traceit
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, setUp, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataSourcePropertiesTest

public DataSourcePropertiesTest(java.lang.String name)
Creates a new test case.

Parameters:
name - name of test method
Method Detail

suite

public static junit.framework.Test suite()
Creates a test suite with all test cases only running in embedded at the moment.


embeddedTestAttributesAsPasswordWithoutPassword_ds

public void embeddedTestAttributesAsPasswordWithoutPassword_ds()
                                                        throws java.lang.Exception
Tests that the default password is not sent as an attribute string when attributesAsPassword is true. The test is run with a DataSource.

Throws:
java.lang.Exception

embeddedTestAttributesAsPasswordWithoutPassword_pooled

public void embeddedTestAttributesAsPasswordWithoutPassword_pooled()
                                                            throws java.lang.Exception
Tests that the default password is not sent as an attribute string when attributesAsPassword is true. The test is run with a ConnectionPoolDataSource.

Throws:
java.lang.Exception

embeddedTestAttributesAsPasswordWithoutPassword_xa

public void embeddedTestAttributesAsPasswordWithoutPassword_xa()
                                                        throws java.lang.Exception
Tests that the default password is not sent as an attribute string when attributesAsPassword is true. The test is run with an XADataSource.

Throws:
java.lang.Exception

embeddedTestAttributesAsPasswordWithPassword_ds

public void embeddedTestAttributesAsPasswordWithPassword_ds()
                                                     throws java.lang.Exception
Tests that the attributesAsPassword property of a DataSource causes an explicitly specified password to be sent as a property string.

Throws:
java.lang.Exception

embeddedTestAttributesAsPasswordWithPassword_pooled

public void embeddedTestAttributesAsPasswordWithPassword_pooled()
                                                         throws java.lang.Exception
Tests that the attributesAsPassword property of a ConnectionPoolDataSource causes an explicitly specified password to be sent as a property string.

Throws:
java.lang.Exception

embeddedTestAttributesAsPasswordWithPassword_xa

public void embeddedTestAttributesAsPasswordWithPassword_xa()
                                                     throws java.lang.Exception
Tests that the attributesAsPassword property of an XADataSource causes an explicitly specified password to be sent as a property string.

Throws:
java.lang.Exception

Built on Thu 2009-11-26 18:42:53-0800, from revision 884739

Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.