| org.mockejb.test.MDBTest
MDBTest | public class MDBTest extends TestCase (Code) | | Demonstrates MDB testing with MockEJB.
This class provides an example of the integration test where session bean
sends a message to MDB and MDB calls another session bean.
We use the capability of MockEJB JMS implementation to deliver messages
synchronously to the receivers, so we don't need to mess with threads.
This class relies on MockEJB and it won't run in the container.
author: Alexander Ananiev author: Dimitar Gospodinov |
Method Summary | |
public void | setUp() Sets up our mock container, JNDI context and deploy the beans that we need. | public void | testMessageBean() Deploys MDB and uses session bean to send a message to MDB. |
setUp | public void setUp() throws Exception(Code) | | Sets up our mock container, JNDI context and deploy the beans that we need.
|
testMessageBean | public void testMessageBean() throws Exception(Code) | | Deploys MDB and uses session bean to send a message to MDB.
|
|
|