Search in sources :

Example 11 with EJBMetaDataImpl

use of org.apache.openejb.client.EJBMetaDataImpl in project tomee by apache.

the class DeploymentIndexTest method testGetDeploymentEJBRequest.

@Test
public void testGetDeploymentEJBRequest() throws RemoteException {
    final EJBMetaDataImpl ejbMetadataWithId = new EJBMetaDataImpl(null, null, null, null, null, 1, InterfaceType.BUSINESS_REMOTE, null, null);
    final EJBRequest request = new EJBRequest(null, ejbMetadataWithId, method, null, null, null);
    final BeanContext info = deploymentIndex.getDeployment(request);
    Assert.assertEquals(beanContext, info);
    Assert.assertEquals(request.getDeploymentId(), info.getDeploymentID());
}
Also used : BeanContext(org.apache.openejb.BeanContext) EJBMetaDataImpl(org.apache.openejb.client.EJBMetaDataImpl) EJBRequest(org.apache.openejb.client.EJBRequest) Test(org.junit.Test)

Aggregations

EJBMetaDataImpl (org.apache.openejb.client.EJBMetaDataImpl)11 BeanContext (org.apache.openejb.BeanContext)9 ClientMetaData (org.apache.openejb.client.ClientMetaData)5 ArrayList (java.util.ArrayList)3 EJBObjectHandler (org.apache.openejb.client.EJBObjectHandler)3 InterfaceType (org.apache.openejb.InterfaceType)2 EJBHomeHandler (org.apache.openejb.client.EJBHomeHandler)2 EJBRequest (org.apache.openejb.client.EJBRequest)2 ContainerSystem (org.apache.openejb.spi.ContainerSystem)2 Test (org.junit.Test)2 Field (java.lang.reflect.Field)1 Method (java.lang.reflect.Method)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Queue (java.util.Queue)1 ConnectionFactory (javax.jms.ConnectionFactory)1 Topic (javax.jms.Topic)1 Context (javax.naming.Context)1 NameNotFoundException (javax.naming.NameNotFoundException)1 NamingException (javax.naming.NamingException)1