0 Replies Latest reply on Jun 27, 2002 4:42 PM by dapissarenko

    Client doesn't work in a JUnit test class

    dapissarenko

      Hi!

      I've written a JUnit test case which should connect to the EJB container and check an entity EJB deployed thereon.

      In the JUnit test class I get the following exception:

      junit.framework.AssertionFailedError: javax.naming.CommunicationException: Receive timed out [Root exception is java.io.InterruptedIOException: Receive timed out]
      at junit.framework.Assert.fail(Assert.java:51)
      at test.DataAccess.entities.TestProjectBean.setUp(TestProjectBean.java:40)
      at junit.framework.TestCase.runBare(TestCase.java:138)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:131)
      at junit.framework.TestSuite.runTest(TestSuite.java:173)
      ...

      If I place the SAME code into a normal Java application, everything works fine.

      I'm using Together ControlCenter 6 and JBoss 3.0.0.

      Does someone know a solution?

      Thanks

      Dimitri Pissarenko