[jboss-cvs] JBossAS SVN: r102823 - trunk/testsuite/src/main/org/jboss/test/deployers/weld/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 23 15:57:23 EDT 2010


Author: marius.bogoevici
Date: 2010-03-23 15:57:22 -0400 (Tue, 23 Mar 2010)
New Revision: 102823

Modified:
   trunk/testsuite/src/main/org/jboss/test/deployers/weld/test/WeldTranslatorExampleUnitTestCase.java
Log:
Change test URL so that CDI-configured beans will be instantiated during at the beginning of the test. Will demonstrate whether Weld's SessionBeanInterceptor can acquire the BeanManager from JNDI.

Modified: trunk/testsuite/src/main/org/jboss/test/deployers/weld/test/WeldTranslatorExampleUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/deployers/weld/test/WeldTranslatorExampleUnitTestCase.java	2010-03-23 19:53:11 UTC (rev 102822)
+++ trunk/testsuite/src/main/org/jboss/test/deployers/weld/test/WeldTranslatorExampleUnitTestCase.java	2010-03-23 19:57:22 UTC (rev 102823)
@@ -22,7 +22,11 @@
 package org.jboss.test.deployers.weld.test;
 
 import junit.framework.Test;
+import org.jboss.test.deployers.weld.translator.ejb.SentenceTranslator;
 
+import javax.naming.InitialContext;
+import java.net.URL;
+
 /**
  * Test WELD Translator example.
  *
@@ -35,7 +39,12 @@
       setTestExpected(true);
    }
 
-   public static Test suite() throws Exception
+    @Override
+    protected URL getBaseURL() throws Exception {
+        return new URL(getBaseURLString() + getWebContextName() + "/home.jsf");
+    }
+
+    public static Test suite() throws Exception
    {
       return deploy(WeldTranslatorExampleUnitTestCase.class, false);
    }




More information about the jboss-cvs-commits mailing list