Examples of EntryReceiver


Examples of org.mule.module.atom.event.EntryReceiver

        fos.write(feed.getBytes("UTF-8"));
        fos.close();

        //allow the file connector to poll a couple of times to ensure we only get the same 25 entries
        Thread.sleep(5000);
        EntryReceiver component = (EntryReceiver)getComponent("feedSplitterConsumer");
        assertEquals(25, component.getCount());
    }
View Full Code Here

Examples of org.mule.module.atom.event.EntryReceiver

        FileOutputStream fos = new FileOutputStream(new File(muleContext.getConfiguration().getWorkingDirectory(), "sample-feed.atom"));
        String feed = loadResourceAsString("sample-feed.atom");
        fos.write(feed.getBytes("UTF-8"));
        fos.close();

        final EntryReceiver component = (EntryReceiver)getComponent("feedSplitterConsumer");

        PollingProber prober = new PollingProber(10000, 100);
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return component.getCount() == 25;
            }

            @Override
            public String describeFailure()
            {
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.