tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r813176 - in /openejb/trunk/openejb3/container/openejb-core/src/test: java/org/apache/openejb/config/AltDDPrefixTest.java resources/altddPU1/META-INF/bartest.ejb-jar.xml resources/altddPU1/META-INF/test.ejb-jar.xml
Date Wed, 09 Sep 2009 23:49:55 GMT
Author: dblevins
Date: Wed Sep  9 23:49:55 2009
New Revision: 813176

URL: http://svn.apache.org/viewvc?rev=813176&view=rev
Log:
Reenabled the no "ejb-jar.xml" persistence unit alt dd test.  Also renamed altddPU1/META-INF/test.ejb-jar.xml
to bartest.ejb-jar.xml as "test" was listed in the prefixes and cause the module to show up
as an ejb-jar module.

Added:
    openejb/trunk/openejb3/container/openejb-core/src/test/resources/altddPU1/META-INF/bartest.ejb-jar.xml
      - copied unchanged from r813128, openejb/trunk/openejb3/container/openejb-core/src/test/resources/altddPU1/META-INF/test.ejb-jar.xml
Removed:
    openejb/trunk/openejb3/container/openejb-core/src/test/resources/altddPU1/META-INF/test.ejb-jar.xml
Modified:
    openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/config/AltDDPrefixTest.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/config/AltDDPrefixTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/config/AltDDPrefixTest.java?rev=813176&r1=813175&r2=813176&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/config/AltDDPrefixTest.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/config/AltDDPrefixTest.java
Wed Sep  9 23:49:55 2009
@@ -84,7 +84,7 @@
      *
      * @throws Exception if something wrong happen
      */
-    public void _testPersistenceUnit() throws Exception {
+    public void testPersistenceUnit() throws Exception {
         System.out.println("*** testPersistenceUnit ***");
         Assembler assmbler = new Assembler();
         SystemInstance.get().setProperty("openejb.altdd.prefix", "footest, test");
@@ -109,11 +109,11 @@
      *
      * @throws Exception if something wrong happen
      */
-    public void _testPersistenceUnitWithAllDD() throws Exception {
+    public void testPersistenceUnitWithAllDD() throws Exception {
         System.out.println("*** testPersistenceUnitWithAllDD ***");
         Assembler assmbler = new Assembler();
         // TODO should be better to add a remove property method
-        SystemInstance.get().setProperty("openejb.altdd.prefix", "");
+        SystemInstance.get().getProperties().remove("openejb.altdd.prefix");
         ConfigurationFactory factory = new ConfigurationFactory();
 
         URL resource = AltDDPrefixTest.class.getClassLoader().getResource("altddPU1");



Mime
View raw message