org.opensubsystems.core.persist.db.driver
Class SetNullColumnTest.SetNullColumnTestInternal

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.opensubsystems.core.persist.db.DatabaseTest
              extended by org.opensubsystems.core.persist.db.driver.SetNullColumnTest.SetNullColumnTestInternal
All Implemented Interfaces:
junit.framework.Test
Enclosing class:
SetNullColumnTest

public static class SetNullColumnTest.SetNullColumnTestInternal
extends DatabaseTest

Internal class which can be included in other test suites directly without including the above suite. This allows us to group multiple tests together and the execute the DatabaseTestSetup only once


Field Summary
 
Fields inherited from class org.opensubsystems.core.persist.db.DatabaseTest
DEFAULT_DB_PASSWORD, DEFAULT_DB_USER, DEFAULT_PROPERTY_FILE, m_connection, m_iRequestedConnectionCount, m_transaction
 
Constructor Summary
SetNullColumnTest.SetNullColumnTestInternal(java.lang.String strTestName)
          Create new test.
 
Method Summary
 void testInsertSelectEmptyString()
          Test if there can be stored empty string in the VARCHAR type column This is not working with some older version of 'com.p6spy.engine.spy.P6SpyDriver' also Oracle doesn't make any difference betweeen null and empty string which may cause problems in the code.
 
Methods inherited from class org.opensubsystems.core.persist.db.DatabaseTest
addDataSource, addDataSource, getDataSourceName, setDataSourceName, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetNullColumnTest.SetNullColumnTestInternal

public SetNullColumnTest.SetNullColumnTestInternal(java.lang.String strTestName)
Create new test.

Parameters:
strTestName - - name of the test
Method Detail

testInsertSelectEmptyString

public void testInsertSelectEmptyString()
                                 throws java.lang.Throwable
Test if there can be stored empty string in the VARCHAR type column This is not working with some older version of 'com.p6spy.engine.spy.P6SpyDriver' also Oracle doesn't make any difference betweeen null and empty string which may cause problems in the code.

Throws:
java.lang.Throwable - - an error has occured during test


Copyright © 2003 - 2006 OpenSubsystems s.r.o.