Package org.mule.api.util

Examples of org.mule.api.util.StreamCloserService


    @Test
    public void getStreamCloserService() throws Exception
    {
        DefaultMuleContext context = (DefaultMuleContext) new DefaultMuleContextFactory().createMuleContext();
        StreamCloserService serviceFromRegistry = context.getRegistry().lookupObject(MuleProperties.OBJECT_MULE_STREAM_CLOSER_SERVICE);
        MuleRegistryHelper registry = spy((MuleRegistryHelper) context.getRegistry());
        context.setMuleRegistry(registry);

        StreamCloserService streamCloserService = context.getStreamCloserService();
        assertNotNull(streamCloserService);

        assertSame(serviceFromRegistry, streamCloserService);

        // test that subsequent invocations consistently returns the same object
View Full Code Here

TOP

Related Classes of org.mule.api.util.StreamCloserService

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.