Examples of IntialisableBean


Examples of org.mule.munit.IntialisableBean

        return "mule-inisialisable-bean.xml";
    }

    @Test
    public void test() throws Exception {
        IntialisableBean bean = (IntialisableBean) muleContext.getRegistry().get(INITIALISABLE_BEAN_ID);

        Collection c = muleContext.getRegistry().lookupObjects(IntialisableBean.CLASS_TO_LOOKUP);

        Assert.assertEquals(1, bean.getCallsToInitialise());
        Assert.assertNotNull(c);
        Assert.assertTrue(c.size()!= 0);;
//        System.out.println("munit lalalal ---: " + c.size());
    }
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.