[jboss-cvs] JBossAS SVN: r78697 - projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1062/unit.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Sep 19 03:22:07 EDT 2008


Author: ALRubinger
Date: 2008-09-19 03:22:07 -0400 (Fri, 19 Sep 2008)
New Revision: 78697

Modified:
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1062/unit/DefaultLocalBusinessUnitTestCase.java
Log:
[EJBTHREE-1495] Integration Test for EJBTHREE-1062 cannot look up local proxy from remote JVM

Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1062/unit/DefaultLocalBusinessUnitTestCase.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1062/unit/DefaultLocalBusinessUnitTestCase.java	2008-09-19 07:13:28 UTC (rev 78696)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1062/unit/DefaultLocalBusinessUnitTestCase.java	2008-09-19 07:22:07 UTC (rev 78697)
@@ -23,8 +23,6 @@
 
 import java.util.Date;
 
-import javax.naming.NameNotFoundException;
-
 import junit.framework.Test;
 
 import org.jboss.ejb3.test.ejbthree1062.Tester;
@@ -53,15 +51,6 @@
    
    public void testCalculator() throws Exception
    {
-      // Guard for errors
-      try
-      {
-         getInitialContext().lookup("CalculatorBean/local");
-      }
-      catch(NameNotFoundException e)
-      {
-         fail("CalculatorBean was not deployed properly");
-      }
       Tester tester = (Tester) getInitialContext().lookup("TesterBean/remote");
       int actual = tester.add(1, 2);
       assertEquals(3, actual);
@@ -69,15 +58,6 @@
    
    public void testSayHiTo() throws Exception
    {
-      // Guard for errors
-      try
-      {
-         getInitialContext().lookup("MyStatelessBean/local");
-      }
-      catch(NameNotFoundException e)
-      {
-         fail("MyStatelessBean was not deployed properly");
-      }
       Tester tester = (Tester) getInitialContext().lookup("TesterBean/remote");
       Date date = new Date();
       String expected = "Hi " + date;




More information about the jboss-cvs-commits mailing list