[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-cvs-commits
Subject: [jboss-cvs] jbosstest/src/main/org/jboss/test/jca/test CachedConnectionSessionUnitTestCase.java
From: Adrian Brock <ejort () users ! sourceforge ! net>
Date: 2003-08-30 15:44:30
[Download RAW message or body]
User: ejort
Date: 03/08/30 08:44:30
Modified: src/main/org/jboss/test/jca/test
CachedConnectionSessionUnitTestCase.java
Log:
Port the close connection changes from 3.2
Revision Changes Path
1.4 +15 -4 \
jbosstest/src/main/org/jboss/test/jca/test/CachedConnectionSessionUnitTestCase.java
Index: CachedConnectionSessionUnitTestCase.java
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/jca/test/CachedConnectionSessionUnitTestCase.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- CachedConnectionSessionUnitTestCase.java 27 Aug 2003 04:33:19 -0000 1.3
+++ CachedConnectionSessionUnitTestCase.java 30 Aug 2003 15:44:30 -0000 1.4
@@ -39,10 +39,16 @@
super(name);
}
- protected void setUp() throws Exception
+ protected void setSpecCompliant(Boolean value)
+ throws Exception
{
ObjectName CCM = new \
ObjectName("jboss.jca:service=CachedConnectionManager");
- getServer().setAttribute(CCM, new Attribute("SpecCompliant", Boolean.TRUE));
+ getServer().setAttribute(CCM, new Attribute("SpecCompliant", value));
+ }
+
+ protected void setUp() throws Exception
+ {
+ setSpecCompliant(Boolean.TRUE);
sh = (CachedConnectionSessionHome)getInitialContext().lookup("CachedConnectionSession");
s = sh.create();
s.createTable();
@@ -55,8 +61,7 @@
s.dropTable();
} // end of if ()
- ObjectName CCM = new \
ObjectName("jboss.jca:service=CachedConnectionManager");
- getServer().setAttribute(CCM, new Attribute("SpecCompliant", \
Boolean.FALSE)); + setSpecCompliant(Boolean.FALSE);
}
public static Test suite() throws Exception
@@ -70,6 +75,12 @@
{
s.insert(1L, "testing");
assertTrue("did not get expected value back", \
"testing".equals(s.fetch(1L))); + }
+
+ public void testTLDB() throws Exception
+ {
+ setSpecCompliant(Boolean.FALSE);
+ s.firstTLTest();
}
}// CachedConnectionSessionUnitTestCase
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic