Package org.eurekastreams.server.persistence.mappers.requests

Examples of org.eurekastreams.server.persistence.mappers.requests.GetFeedByUrlRequest


     * Test execute on existing feed.
     */
    @Test
    public void testExecuteWithExisting()
    {
        GetFeedByUrlRequest request = new GetFeedByUrlRequest(1L, "http://www.google2.com");

        Feed feed = sut.execute(request);
        assertEquals("http://www.google2.com", feed.getUrl());
        assertEquals(1L, feed.getPlugin().getId());
        assertEquals(2L, feed.getId());
View Full Code Here


     * Test execute on feed with a url thats in the system but tied to another plugin.
     */
    @Test
    public void testExecuteWithOutExisting()
    {
        GetFeedByUrlRequest request = new GetFeedByUrlRequest(2L, "http://www.google2.com");

        Feed feed = sut.execute(request);
        assertEquals("http://www.google2.com", feed.getUrl());
        assertEquals(2L, feed.getPlugin().getId());
       
View Full Code Here

     * Test with a url thats not in the system at all.
     */
    @Test
    public void testExecuteWithOutExisting2()
    {
        GetFeedByUrlRequest request = new GetFeedByUrlRequest(2L, "http://www.google8.com");

        Feed feed = sut.execute(request);
        assertEquals("http://www.google8.com", feed.getUrl());
        assertEquals(2L, feed.getPlugin().getId());
       
View Full Code Here

        // Perhaps a new request object needs to be created? Moving on for now.
        ServiceActionContext getFeedContext = new ServiceActionContext(values.get("EUREKA:FEEDURL"), principal);
        String title = (String) getTitleFromFeed.execute(getFeedContext);

        // Find or create the feed.
        GetFeedByUrlRequest request =
                new GetFeedByUrlRequest((Long) values.get("EUREKA:PLUGINID"), (String) values.get("EUREKA:FEEDURL"));
        Feed feed = getMapper.execute(request);
        feed.setTitle(title);

        // And now find or create the subscriber.
        FeedSubscriber feedSubscriber =
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.persistence.mappers.requests.GetFeedByUrlRequest

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.