Examples of ItfSimplePrintMessage


Examples of org.ow2.easybeans.tests.common.ejbs.base.ItfSimplePrintMessage

     * @throws Exception if there is a problem with the bean initialization.
     */
    @BeforeClass
    public void setup() throws Exception {
        // gets a bean
        ItfSimplePrintMessage sfsbPrint = EJBHelper.getBeanRemoteInstance(SFSBInheritanceTest00.class,
                ItfSimplePrintMessage.class);
        sfsbMessage = sfsbPrint;
    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.base.ItfSimplePrintMessage

     * Calls the method getDefaultMessage() of the stateless bean that was goten
     * by lookup.
     * @throws Exception if a lokkup error occurs.
     */
    public void testSLSBByLookup() throws Exception {
        ItfSimplePrintMessage slsbBean2 = EJBHelper.getBeanRemoteInstance(SLSBDeployTest.class,
                ItfSimplePrintMessage.class);
        assertEquals(slsbBean2.getDefaultMessage(), ItfSimplePrintMessage.DEFAULT_MESSAGE,
                "The bean with the remote interface did not returned the default message.");
    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.base.ItfSimplePrintMessage

     * Calls the method getDefaultMessage() of the stateful bean that was goten
     * by lookup.
     * @throws Exception if a lokkup error occurs.
     */
    public void testSFSBByLookup() throws Exception {
        ItfSimplePrintMessage sfsbBean2 = EJBHelper.getBeanRemoteInstance(SFSBDeployTest.class,
                ItfSimplePrintMessage.class);
        assertEquals(sfsbBean2.getDefaultMessage(), ItfSimplePrintMessage.DEFAULT_MESSAGE,
                "The bean with the remote interface did not returned the default message.");
    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.base.ItfSimplePrintMessage

     * bean is compared with itself. Example bean1.equals(bean1). The beans in
     * this test were goten by a lookup.
     * @throws Exception if a lookup error occurs.
     */
    public void testSLSameInstanceIdentityLookup() throws Exception {
        ItfSimplePrintMessage bean1 = EJBHelper
                .getBeanRemoteInstance(SLSBDeployTest.class, ItfSimplePrintMessage.class);
        assertTrue(bean1.equals(bean1), "The stateless bean is not equal to itself.");
    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.base.ItfSimplePrintMessage

     * bean is compared with other bean that has the same name. Example bean1.equals(bean2). The beans in
     * this test were goten by a lookup.
     * @throws Exception if a lookup error occurs.
     */
    public void testSLDifferentInstanceIdentityLookup() throws Exception {
        ItfSimplePrintMessage bean1 = EJBHelper
                .getBeanRemoteInstance(SLSBDeployTest.class, ItfSimplePrintMessage.class);
        ItfSimplePrintMessage bean2 = EJBHelper
                .getBeanRemoteInstance(SLSBDeployTest.class, ItfSimplePrintMessage.class);
        assertTrue(bean1.equals(bean2), "The stateless bean is not equal to other stateless with the same name.");
    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.base.ItfSimplePrintMessage

     * bean is compared with itself. Example bean1.equals(bean1). The beans in
     * this test were goten by a lookup.
     * @throws Exception if a lookup error occurs.
     */
    public void testSFSameInstanceIdentityLookup() throws Exception {
        ItfSimplePrintMessage bean1 = EJBHelper
                .getBeanRemoteInstance(SFSBDeployTest.class, ItfSimplePrintMessage.class);
        assertTrue(bean1.equals(bean1), "The stateful bean is not equal to itself.");
    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.base.ItfSimplePrintMessage

     * bean is compared with other bean that has the same name. Example bean1.equals(bean2). The beans in
     * this test were goten by a lookup.
     * @throws Exception if a lookup error occurs.
     */
    public void testSFDifferentInstanceIdentityLookup() throws Exception {
        ItfSimplePrintMessage bean1 = EJBHelper
                .getBeanRemoteInstance(SFSBDeployTest.class, ItfSimplePrintMessage.class);
        ItfSimplePrintMessage bean2 = EJBHelper
                .getBeanRemoteInstance(SFSBDeployTest.class, ItfSimplePrintMessage.class);
        assertFalse(bean1.equals(bean2), "The stateful bean is equal to other stateful with the same name.");
    }
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.