KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > perseus > connector > ra > TestRAUnman


1 /**
2  *
3  */

4
5 package org.objectweb.perseus.connector.ra;
6
7 import junit.framework.TestCase;
8
9 import java.util.Vector JavaDoc;
10 import javax.resource.cci.ConnectionFactory JavaDoc;
11
12 //import org.objectweb.transaction.api.ConnectionFactoryWrapper;
13

14 /**
15  * The class <b>TestRAUnman</b> defines a test suite for testing a correct RA
16  * behaviour within an unmanaged environment.
17  */

18 public abstract class TestRAUnman extends TestRA {
19
20     /**
21      * Constructor in according to the JUnit constraints
22      */

23     public TestRAUnman(String JavaDoc tn) {
24         super(tn);
25     }
26
27     //////////////////////////////////////////////////////////////
28
// IMPLEMENTATION OF ABSTRACT METHODS INHERITED FROM TestRA //
29
//////////////////////////////////////////////////////////////
30
/**
31      * This method can be override to initialize the ManagedConnectionFactory.
32      */

33     protected void initMCF() throws Exception JavaDoc {
34         Object JavaDoc bcf = mcf.createConnectionFactory();
35         /*
36         if (bcf instanceof ConnectionFactory)
37             cf = (ConnectionFactory) bcf;
38         else if (bcf instanceof ConnectionFactoryWrapper)
39             cf = ((ConnectionFactoryWrapper) bcf).getCCIConnectionFactory();
40         else
41             throw new Exception(
42                 "Cannot obtain a ConnectionFactory from the RA !");
43         */

44     }
45 }
Popular Tags