Package org.elasticsearch.river.wikipedia

Examples of org.elasticsearch.river.wikipedia.WikipediaRiver$PageCallback


        PageRenderLinkSource source = mockPageRenderLinkSource();
        Link link = mockLink();

        expect(source.createPageRenderLinkWithContext("foo")).andReturn(link);

        PageCallback pc = new PageCallback("foo");

        assertEquals(pc.toString(), "PageCallback[foo]");

        replay();

        assertSame(pc.toLink(source), link);

        verify();
    }
View Full Code Here


        PageRenderLinkSource source = mockPageRenderLinkSource();
        Link link = mockLink();

        expect(source.createPageRenderLinkWithContext("bar", "1", "2")).andReturn(link);

        PageCallback pc = new PageCallback("bar", context);

        assertEquals(pc.toString(), "PageCallback[bar 1/2]");

        replay();

        assertSame(pc.toLink(source), link);

        verify();
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.river.wikipedia.WikipediaRiver$PageCallback

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.