| |
|
| org.objectweb.jonas.jtests.util.JTestCase org.objectweb.jonas.jtests.clients.jca15.F_connectorTest
F_connectorTest | public class F_connectorTest extends JTestCase (Code) | | Tests JOnAS Connector Architecture setter methods
|
Method Summary | |
public static void | main(String args) | protected void | setUp() | protected void | startUp(String testName) | public static Test | suite() | protected void | tearDown() Common tearDown method, used for every test.
Verify some Application Server tests by reviewing the log file.
The application server also calls ManagedConnection.destroy when it
receives a connection error event notification that signals a fatal error
on the physical connection. | public void | testConnectionBasics() | public void | testConnectionProduct() | public void | testCreatedCMInstance() An application server is required to provide an implementation of the
javax.resource.spi.ConnectionManager interface. | public void | testPrintWriter() Basic error logging and tracing.
An application server is required to use the following interfaces (supported
by the resource adapter) to provide basic error logging and tracing for its
configured set of resource adapters.
? ManagedConnectionFactory.set/getLogWriter
? ManagedConnection.set/getLogWriter
This test includes in jonas-ra.xml file the log-enabled
info as shown below. | public void | testRegisteredListener() An application server is required to implement the javax.resource.spi.-
ConnectionEventListener interface and to register ConnectionEventListener
with resource adapter to get connection-related event notifications. | public void | testSetterMethods() The application server calls setter methods on the ManagedConnectionFactory
instance to set various configuration properties on this instance. |
setUp | protected void setUp()(Code) | | |
suite | public static Test suite()(Code) | | |
tearDown | protected void tearDown() throws Exception(Code) | | Common tearDown method, used for every test.
Verify some Application Server tests by reviewing the log file.
The application server also calls ManagedConnection.destroy when it
receives a connection error event notification that signals a fatal error
on the physical connection. When method closeUp(int x) is called by
tearDown with x>0, a connection error event notification is sent to
the application server. Look for ManagedConnection.destroy entry.
|
testConnectionBasics | public void testConnectionBasics() throws Exception(Code) | | Verify connection was made
|
testConnectionProduct | public void testConnectionProduct() throws Exception(Code) | | Verify connection is useful by accessing ManagedConnectionMetaData instance
|
testCreatedCMInstance | public void testCreatedCMInstance() throws Exception(Code) | | An application server is required to provide an implementation of the
javax.resource.spi.ConnectionManager interface.
|
testPrintWriter | public void testPrintWriter() throws Exception(Code) | | Basic error logging and tracing.
An application server is required to use the following interfaces (supported
by the resource adapter) to provide basic error logging and tracing for its
configured set of resource adapters.
? ManagedConnectionFactory.set/getLogWriter
? ManagedConnection.set/getLogWriter
This test includes in jonas-ra.xml file the log-enabled
info as shown below.
The JSR112ResourceAdapter.rar
is used. This test looks up "ErsatzEIS" in the JNDI name space.
The F_connectorTest is
deployed with log-enabled set to true.
<log-enabled>true</log-enabled>
<log-topic>org.objectweb.jtests.resourceAdapter</log-topic>
|
testRegisteredListener | public void testRegisteredListener() throws Exception(Code) | | An application server is required to implement the javax.resource.spi.-
ConnectionEventListener interface and to register ConnectionEventListener
with resource adapter to get connection-related event notifications.
Count (at least) one listener
|
testSetterMethods | public void testSetterMethods() throws Exception(Code) | | The application server calls setter methods on the ManagedConnectionFactory
instance to set various configuration properties on this instance.
|
|
|
|