|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.security.persist.db.SecureDatabaseTestUtils
public class SecureDatabaseTestUtils
This class is used to setup environment for secure test. It creates default user and domain and setup the call context.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_USER_PASSWORD
Password used for default user. |
protected org.opensubsystems.security.persist.DomainFactory |
m_domainFactory
Factory to manage domains. |
protected org.opensubsystems.security.persist.ExternalSessionFactory |
m_externalSessionFactory
Factory to manage external sessions. |
protected org.opensubsystems.security.persist.InternalSessionFactory |
m_internalSessionFactory
Factory to manage internal sessions. |
protected org.opensubsystems.security.persist.UserFactory |
m_userFactory
Factory to manage user. |
| Constructor Summary | |
|---|---|
SecureDatabaseTestUtils()
Create new SecureDatabaseTestUtils. |
|
| Method Summary | |
|---|---|
void |
setUpGuestUser(java.lang.String strTestClassName,
java.lang.String strTestName)
Setup the database with brand new domain and brand new guest user so we can run tests in simulated secure environment. |
void |
setUpSecurity(java.lang.String strTestClassName,
java.lang.String strTestName)
Setup the database with brand new domain and brand new user so we can run tests in simulated secure environment. |
void |
setUpSecuritySafely(java.lang.String strTestClassName,
java.lang.String strTestName)
Setup the call context so we can run in simulated secure environment. |
void |
tearDown()
Tear down method that will destroy test domain, user and its sessions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_USER_PASSWORD
protected org.opensubsystems.security.persist.DomainFactory m_domainFactory
protected org.opensubsystems.security.persist.UserFactory m_userFactory
protected org.opensubsystems.security.persist.InternalSessionFactory m_internalSessionFactory
protected org.opensubsystems.security.persist.ExternalSessionFactory m_externalSessionFactory
| Constructor Detail |
|---|
public SecureDatabaseTestUtils()
throws java.lang.Exception
java.lang.Exception - - an error has occured| Method Detail |
|---|
public void setUpSecurity(java.lang.String strTestClassName,
java.lang.String strTestName)
throws java.lang.Exception
strTestClassName - - name of the class running this teststrTestName - - name of the test being executed
java.lang.Exception - - problem setting up test case
public void setUpGuestUser(java.lang.String strTestClassName,
java.lang.String strTestName)
throws java.lang.Exception
strTestClassName - - name of the class running this teststrTestName - - name of the test being executed
java.lang.Exception - - problem setting up test case
public void setUpSecuritySafely(java.lang.String strTestClassName,
java.lang.String strTestName)
throws java.lang.Exception
strTestClassName - - name of the class running this teststrTestName - - name of the test being executed
java.lang.Exception - - problem setting up test case
public void tearDown()
throws java.lang.Exception
java.lang.Exception - - error occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||