org.opensubsystems.security.persist.db
Class SecureDatabaseTest

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.security.persist.db.SecureDatabaseTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AccessRightDatabaseFactoryTest.AccessRightDatabaseFactoryTestInternal, AuthenticationControllerTest.AuthenticationControllerTestInternal, AuthorizationControllerTest.AuthorizationControllerTestInternal, ExternalSessionDatabaseFactoryTest.ExternalSessionDatabaseFactoryTestInternal, UserExtrasControllerTest.UserExtrasControllerTestInternal

public abstract class SecureDatabaseTest
extends org.opensubsystems.core.persist.db.DatabaseTest

Base class for database factories that do not support list operations or for which list operations should be tested separately and which needs to have setup call context before they are called. This class allows to write tests for database factories which do not implement ListDatabaseFactory and still need to have secure context. It also allows to write test for factories, which do implement ListDatabaseFactory but we want to separately tests for list operations in test derived from SecureListDatabaseFactory and other nonlist operations in test derived from this class.

Version:
$Id: SecureDatabaseTest.java,v 1.8 2007/01/07 06:14:40 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
Initial revision

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
SecureDatabaseTest(java.lang.String strTestName)
          Constructor
 
Method Summary
protected  void setUp()
          
protected  void tearDown()
          
 
Methods inherited from class org.opensubsystems.core.persist.db.DatabaseTest
addDataSource, addDataSource, getDataSourceName, setDataSourceName
 
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

SecureDatabaseTest

public SecureDatabaseTest(java.lang.String strTestName)
                   throws java.lang.Exception
Constructor

Parameters:
strTestName - - name of the test
Throws:
java.lang.Exception - - an error has occured
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception

Overrides:
setUp in class org.opensubsystems.core.persist.db.DatabaseTest
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception

Overrides:
tearDown in class org.opensubsystems.core.persist.db.DatabaseTest
Throws:
java.lang.Exception


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