Package de.nava.informa.impl.basic

Examples of de.nava.informa.impl.basic.Feed


       */
      channel = FeedParser.parse(getChannelBuilder(), conn.getInputStream());
      //}

      this.timeToExpire = getTimeToExpire(channel);
      this.feed = new Feed(channel);

      Date currDate = new Date();
      this.feed.setLastUpdated(currDate);
      this.feed.setDateFound(currDate);
      this.feed.setLocation(urlToRetrieve);
View Full Code Here


  public void testaddFeed() throws Exception {
    FeedManager FM = new FeedManager();

    File inpFile = new File(getDataDir(), "xmlhack-0.91.xml");
    ChannelIF channel = FeedParser.parse(new ChannelBuilder(), inpFile);
    String url = new Feed(channel).getLocation().toString();
    FeedIF feed = FM.addFeed(url);
    assertEquals(feed, FM.addFeed(url)); // same reference
  }
View Full Code Here

    File inpFile = new File(getDataDir(), "xmlhack-0.91.xml");
    assertFalse(FM.hasFeed(""));

    ChannelIF channel = FeedParser.parse(new ChannelBuilder(), inpFile);

    String url = new Feed(channel).getLocation().toString();

    assertFalse(FM.hasFeed(url));

    FM.addFeed(url);
    assertTrue(FM.hasFeed(url));
View Full Code Here

TOP

Related Classes of de.nava.informa.impl.basic.Feed

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.