org.opensubsystems.security.logic
Class XAPoolSapDBDeadlockTest.XAPoolSapDBDeadlockTestInternal

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.logic.XAPoolSapDBDeadlockTest.XAPoolSapDBDeadlockTestInternal
All Implemented Interfaces:
junit.framework.Test
Enclosing class:
XAPoolSapDBDeadlockTest

public static class XAPoolSapDBDeadlockTest.XAPoolSapDBDeadlockTestInternal
extends org.opensubsystems.core.persist.db.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
protected  org.opensubsystems.security.persist.DomainFactory m_domainFactory
          Factory to manage domains.
protected  org.opensubsystems.security.persist.db.ExternalSessionDatabaseFactory m_externalSessionFactory
          Factory to manage external sessions.
protected  org.opensubsystems.security.logic.SessionController m_sessionControl
          Controller to manage sessions.
protected  org.opensubsystems.security.persist.db.InternalSessionDatabaseFactory m_sessionFactory
          Factory to manage internal sessions.
protected  org.opensubsystems.security.logic.UserController m_userControl
          Controller used to manipulate users.
protected  org.opensubsystems.security.persist.UserFactory m_userFactory
          Factory to manage users.
protected  TestUserDatabaseFactoryUtils m_userFactoryUtils
          Factory utilities to manage roles.
 
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
XAPoolSapDBDeadlockTest.XAPoolSapDBDeadlockTestInternal(java.lang.String strTestName)
           
 
Method Summary
 void testSapDeadlock()
          This test is the minimal test to deadlock sapdb 7.4.3.27 with JOTM 1.4.3 and XAPool 1.3.1.
 
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
 

Field Detail

m_domainFactory

protected org.opensubsystems.security.persist.DomainFactory m_domainFactory
Factory to manage domains.


m_userFactory

protected org.opensubsystems.security.persist.UserFactory m_userFactory
Factory to manage users.


m_sessionFactory

protected org.opensubsystems.security.persist.db.InternalSessionDatabaseFactory m_sessionFactory
Factory to manage internal sessions.


m_externalSessionFactory

protected org.opensubsystems.security.persist.db.ExternalSessionDatabaseFactory m_externalSessionFactory
Factory to manage external sessions.


m_userControl

protected org.opensubsystems.security.logic.UserController m_userControl
Controller used to manipulate users.


m_sessionControl

protected org.opensubsystems.security.logic.SessionController m_sessionControl
Controller to manage sessions.


m_userFactoryUtils

protected TestUserDatabaseFactoryUtils m_userFactoryUtils
Factory utilities to manage roles.

Constructor Detail

XAPoolSapDBDeadlockTest.XAPoolSapDBDeadlockTestInternal

public XAPoolSapDBDeadlockTest.XAPoolSapDBDeadlockTestInternal(java.lang.String strTestName)
                                                        throws java.lang.Exception
Parameters:
strTestName - - name of the test
Throws:
java.lang.Exception - - an error has occured
Method Detail

testSapDeadlock

public void testSapDeadlock()
                     throws java.lang.Exception
This test is the minimal test to deadlock sapdb 7.4.3.27 with JOTM 1.4.3 and XAPool 1.3.1. Don't look at the correctness of the test but the sequence of the SQL commands. If I remove anything, the deadlock will not occur.

Throws:
java.lang.Exception - - error occured


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