org.opensubsystems.security.patterns.listdata.logic.impl
Class SecureListControllerTest

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.patterns.listdata.logic.ListControllerTest
                  extended by org.opensubsystems.security.patterns.listdata.logic.impl.SecureListControllerTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
DomainControllerSecurityTest.DomainControllerSecurityTestInternal, DomainControllerTest.DomainControllerTestInternal, RoleControllerSecurityTest.RoleControllerSecurityTestInternal, SessionControllerSecurityTest.SessionControllerSecurityTestInternal, SessionControllerTest.SessionControllerTestInternal, UserControllerSecurityTest.UserControllerSecurityTestInternal, UserControllerSecurityTest1.UserControllerSecurityTestInternal1, UserControllerTest.UserControllerTestInternal

public abstract class SecureListControllerTest
extends org.opensubsystems.patterns.listdata.logic.ListControllerTest

Use this class to implement test for controllers that needs to have setup call context and other security related environment before they are called.

Version:
$Id: SecureListControllerTest.java,v 1.9 2007/01/23 06:02:59 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
Initial revision

Field Summary
 
Fields inherited from class org.opensubsystems.patterns.listdata.logic.ListControllerTest
m_listTestUtils
 
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
SecureListControllerTest(java.lang.String strTestName, org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils listTestUtils)
          constructor with data object specific parameters
 
Method Summary
protected  org.opensubsystems.patterns.listdata.logic.ListController getListController()
          
protected  void setUp()
          
protected  void tearDown()
          
 
Methods inherited from class org.opensubsystems.patterns.listdata.logic.ListControllerTest
testGetExactPage, testGetExactPageKeepSelected, testGetNextPage, testGetNextPageKeepSelected, testGetOrderAsc, testGetOrderAscKeepSelected, testGetOrderDesc, testGetOrderDescKeepSelected, testGetPrevPage, testGetSetFilter, testGetSetPageSize, testGetSetPageSizeKeepSelected, testGetShowList, testGetShowListKeepSelected, testGetShowListWithPresetSize, testGetShowListWithPresetSizeKeepSelected
 
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

SecureListControllerTest

public SecureListControllerTest(java.lang.String strTestName,
                                org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils listTestUtils)
                         throws java.lang.Exception
constructor with data object specific parameters

Parameters:
strTestName - - name of the test
listTestUtils - - test utils used for 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

getListController

protected org.opensubsystems.patterns.listdata.logic.ListController getListController()
                                                                               throws org.opensubsystems.core.error.OSSException

Overrides:
getListController in class org.opensubsystems.patterns.listdata.logic.ListControllerTest
Throws:
org.opensubsystems.core.error.OSSException


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