Examples of ItfInvocationParameter00


Examples of org.ow2.easybeans.tests.common.ejbs.base.invocationcontext.ItfInvocationParameter00

     * reference.
     * @param beanClass bean class
     * @throws Exception if there is a problem with the test.
     */
    public void testNull(final Class beanClass) throws Exception {
        ItfInvocationParameter00 icBean = getBeanLocalInstance(beanClass, ItfInvocationParameter00.class);

        ComplexObject00 cmpObj = new ComplexObject00();

        Object[] arResult = icBean.getObjects00(cmpObj);

        assertNull(arResult[0], "[0]The object should be null.");
    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.base.invocationcontext.ItfInvocationParameter00

     * modifications.
     * @param beanClass bean class name
     * @throws Exception if there is a problem with the test.
     */
    public void testWithoutModification(final Class beanClass) throws Exception {
        ItfInvocationParameter00 icBean = getBeanLocalInstance(beanClass, ItfInvocationParameter00.class);

        ComplexObject00 cmpObj = new ComplexObject00();

        logger.debug("before bean method call, parameter: {0}", cmpObj);

        Object[] arResult = icBean.getObjects01(cmpObj);

        logger.debug("after bean method call, parameter: {0}", arResult[0]);

        assertEquals(arResult[0], cmpObj, "[0]The object should be the same. ");
    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.base.invocationcontext.ItfInvocationParameter00

     * modifications.
     * @param beanClass bean class
     * @throws Exception if there is a problem with the test.
     */
    public void testWithModification(final Class beanClass) throws Exception {
        ItfInvocationParameter00 icBean = getBeanLocalInstance(beanClass, ItfInvocationParameter00.class);

        ComplexObject00 cmpObj = new ComplexObject00();

        Object[] arObjResult = icBean.getObjects02(cmpObj);

        ComplexObject00 cmpResult = (ComplexObject00) arObjResult[0];

        // Checks if the result is correct
        assertTrue(cmpResult.getHashCode() == INT_VALUE_0.intValue(), "[0]The returned object is not the expected. ");
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.