Package org.mule.munit

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

Related Classes of org.mule.munit.IntialisableBean

Copyright © 2018 www.massapicom. 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.