Examples of otherMethod()


Examples of org.jboss.as.test.integration.ejb.home.localhome.SimpleLocalInterface.otherMethod()

    @Test
    public void testGetEjbLocalHome() throws Exception {
        final SimpleLocalHome home = (SimpleLocalHome) iniCtx.lookup("java:module/SimpleLocalHomeBean!" + SimpleLocalHome.class.getName());
        final SimpleLocalInterface ejbInstance = home.createSimple();
        Assert.assertEquals("Hello World", ejbInstance.otherMethod());
    }

    @Test
    public void testStatefulLocalHome() throws Exception {
        final String message = "Bean Message";
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.home.localhome.SimpleLocalInterface.otherMethod()

    public void testGetEjbLocalObject() throws Exception {
        final String message = "Bean Message";
        final SimpleStatefulLocalHome home = (SimpleStatefulLocalHome) iniCtx.lookup("java:module/SimpleStatefulLocalBean!" + SimpleStatefulLocalHome.class.getName());
        SimpleLocalInterface ejbInstance = home.createSimple(message);
        try {
            Assert.assertEquals(message, ejbInstance.otherMethod());
        } catch (EJBException e) {
            Assert.assertEquals(IllegalStateException.class, e.getCause().getClass());
        }
    }
}
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.home.localhome.SimpleLocalInterface.otherMethod()

    @Test
    public void testgetEjbLocalObject() throws Exception {
        final String message = "Bean Message";
        final SimpleStatefulLocalHome home = (SimpleStatefulLocalHome) iniCtx.lookup("java:module/SimpleStatefulLocalHomeBean!" + SimpleStatefulLocalHome.class.getName());
        SimpleLocalInterface ejbInstance = home.createSimple(message);
        Assert.assertEquals(message, ejbInstance.otherMethod());
        ejbInstance = home.createComplex("hello", "world");
        Assert.assertEquals("hello world", ejbInstance.otherMethod());
    }
}
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.home.localhome.SimpleLocalInterface.otherMethod()

        final String message = "Bean Message";
        final SimpleStatefulLocalHome home = (SimpleStatefulLocalHome) iniCtx.lookup("java:module/SimpleStatefulLocalHomeBean!" + SimpleStatefulLocalHome.class.getName());
        SimpleLocalInterface ejbInstance = home.createSimple(message);
        Assert.assertEquals(message, ejbInstance.otherMethod());
        ejbInstance = home.createComplex("hello", "world");
        Assert.assertEquals("hello world", ejbInstance.otherMethod());
    }
}
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.home.remotehome.SimpleInterface.otherMethod()

    public void testGetEjbLocalObject() throws Exception {
        final String message = "Bean Message";
        final SimpleStatefulHome home = (SimpleStatefulHome) iniCtx.lookup("java:module/SimpleStatefulBean!" + SimpleStatefulHome.class.getName());
        SimpleInterface ejbInstance = home.createSimple(message);
        try {
            Assert.assertEquals(message, ejbInstance.otherMethod());
        } catch (EJBException e) {
            Assert.assertEquals(IllegalStateException.class, e.getCause().getClass());
        }
    }
}
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.home.remotehome.SimpleInterface.otherMethod()

    @Test
    public void testGetEjbLocalHome() throws Exception {
        final SimpleHome home = (SimpleHome) iniCtx.lookup("java:module/SimpleHomeBean!" + SimpleHome.class.getName());
        final SimpleInterface ejbInstance = home.createSimple();
        Assert.assertEquals("Hello World", ejbInstance.otherMethod());
    }

    @Test
    public void testStatefulLocalHome() throws Exception {
        final String message = "Bean Message";
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.home.remotehome.SimpleInterface.otherMethod()

    @Test
    public void testgetEjbLocalObject() throws Exception {
        final String message = "Bean Message";
        final SimpleStatefulHome home = (SimpleStatefulHome) iniCtx.lookup("java:module/SimpleStatefulHomeBean!" + SimpleStatefulHome.class.getName());
        SimpleInterface ejbInstance = home.createSimple(message);
        Assert.assertEquals(message, ejbInstance.otherMethod());
        ejbInstance = home.createComplex("hello", "world");
        Assert.assertEquals("hello world", ejbInstance.otherMethod());
    }
}
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.home.remotehome.SimpleInterface.otherMethod()

        final String message = "Bean Message";
        final SimpleStatefulHome home = (SimpleStatefulHome) iniCtx.lookup("java:module/SimpleStatefulHomeBean!" + SimpleStatefulHome.class.getName());
        SimpleInterface ejbInstance = home.createSimple(message);
        Assert.assertEquals(message, ejbInstance.otherMethod());
        ejbInstance = home.createComplex("hello", "world");
        Assert.assertEquals("hello world", ejbInstance.otherMethod());
    }
}
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.Other.otherMethod()

      assertFalse(AnotherMixin.invoked);
     
      SimpleInterceptor.invoked = null;
      SimpleMixin.invoked = false;
      Other other = (Other)proxy;
      other.otherMethod();
      assertFalse(SimpleMixin.invoked);
      assertNotNull(ReturningInterceptor.invoked);
      assertEquals("otherMethod", ReturningInterceptor.invoked.getName());
      assertNull(SimpleInterceptor.invoked);
      assertFalse(AnotherMixin.invoked);
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.Other.otherMethod()

      assertFalse(AnotherMixin.invoked);
     
      SimpleInterceptor.invoked = null;
      SimpleMixin.invoked = false;
      Other other = (Other)proxy;
      other.otherMethod();
      assertFalse(SimpleMixin.invoked);
      assertNotNull(ReturningInterceptor.invoked);
      assertEquals("otherMethod", ReturningInterceptor.invoked.getName());
      assertNull(SimpleInterceptor.invoked);
      assertFalse(AnotherMixin.invoked);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.