JBoss Community

TestSuite - mapping test cases for AS6 and IronJacamar

modified by Stefano Maestri in IronJacamar Development - View the full document

1. General Note

 

  1. Every deployment related test should be written with Arquillian
  2. Every test that depends on some external deployment into the environment (for example jdbc driver) should be carefully evaluated to consider possible difference in AS7 env

 

 

2. Test List

 

 

 

Stressed condition

AS6 Implementation

(ClassName.methodName)

package is always

org.jboss.test.jca.test

IronJacamar Implementation

(packageName.ClassName.methodName)


verify AdminObject deployment, obj types and propertiesAdminObjectUnitTestCase.testAdminObject()

TODO. We only verify atm that annotated AdminObject class is correctly processed from an annotation point of view in org.jboss.jca.deployers.annotations.AnnotationsTestCase.

testProcessAdministeredObject.

Test for connection background validationBackgroundValidationUnitTestCase

To be evaluated: we are testing our Validation mechanism directly, but this test should be ported to stress Validation framework indirectly at deploy time. IOW we can verify with this test if and when validation should stop the deployment.

stress various condition on CM (changing config and/or using it to get connection and so on)BaseConnectionManagerUnitTestCaseTODO
CachedConnectionErrorUnitTestCaseTo be analysed. Maybe it don't make sense as is for ironjacamar
CachedConnectionSessionUnitTestCaseTo be analysed. Maybe it don't make sense as is for ironjacamar
verify cf (datasource) correct serialization/deserializationConnectionFactorySerializationUnitTestCaseTODO
verify dependency define in jboss-ra.xmlDependsRARUnitTestCaseDoes not make sense for ironjacamar
Check deployment of a -dsDeploymentUnitTestCase

/ironjacamar-adapters/src/test/java/org/jboss/jca/adapters/jdbc/unit/H2TestCase

/ironjacamar-adapters/src/test/java/org/jboss/jca/adapters/jdbc/unit/H2XATestCase

 

NOTE: here we are just testing that deployment is working, while in old test suite also some properties setting are verified

Test HA connection both Local and XAHAConnectionFactoryUnitTestCaseDoes not make sense since we are not supporting HA connection right now.
test in flow RA using a Message Driven BeanInflowUnitTestCaseTODO. We need to set up a messaging system in our test suite to do that
test correct behavior of ConnectionPool

InternalManagedConnection

PoolStatUnitTestCase

TODO: we have 2 classes that should do that in package org.jboss.jca.core.connectionmanager.unit.pool named PoolingTestCase and PreFillPoolingTestCase but all test methods are empty
test that calling .close() 2 times on rs, statement, and connection does not throw ExceptionJDBCComplianceUnitTestCaseTo be evaluated, it's a jdbc compliance test, not directly related to JCA
test that after -ds redeployment connection are obtainable.JDBCDriverRedeployUnitTestCaseTODO: extending

/ironjacamar-adapters/src/test/java/org/jboss/jca/adapters/jdbc/unit/H2TestCase

and

/ironjacamar-adapters/src/test/java/org/jboss/jca/adapters/jdbc/unit/H2XATestCase

 

Note: the old test suite is redeploying driver too. It have to be evaluated in our new environment if it make sense and if AS7 would permit driver hot redeployment

test various jdbc statement method JDBCStatementTestsConnectionUnitTestCaseIt's a JDBC test, not a JCA test. To be evaluated
test Local transaction statesLocalTransactionTidyupUnitTestCaseTODO: byteman to be evaluated. Probably not needed here
test Local transaction commits and rollbacksLocalWrapperCleanupUnitTestCaseTODO: byteman to be evaluated. Maybe useful here.
test marsha/unmarshal of ManagedConnectionFactory and some deployment injection for itManagedDeploymentUnitTestCase.javaTODO: the marshal/unmarshal part. The injection is already covered

Comment by going to Community

Create a new document in IronJacamar Development at Community