Package com.salas.bb.domain

Examples of com.salas.bb.domain.DirectFeed


    {
        super.setUp();

        model = new FeedDisplayModel();

        feed = new DirectFeed();

        articleTomorrow = appendArticle(feed, DELTA_TOMORROW);
        article13DaysAgo = appendArticle(feed, DELTA_13_DAYS_AGO);
        articleYesterday = appendArticle(feed, DELTA_YESTERDAY);
        articleNow = appendArticle(feed, DELTA_NOW);
View Full Code Here


    protected void setUp()
        throws Exception
    {
        super.setUp();

        feed = new DirectFeed();

        view = new HTMLFeedDisplay(new SampleHTMLFeedDisplayConfig(), new ValueHolder(0), new ValueHolder(0));
        view.setFeed(feed);

        article1 = createArticle(DELTA_TOMORROW);
View Full Code Here

     */
    protected void setUp() throws Exception
    {
        super.setUp();

        feed = new DirectFeed();
    }
View Full Code Here

     * Tests detecting the best title.
     */
    public void testFindBestTitle()
        throws MalformedURLException
    {
        DirectFeed df1 = new DirectFeed();
        DirectFeed df2 = new DirectFeed();

        df1.setBaseTitle("a");
        df2.setXmlURL(new URL("ftp://test"));

        assertEquals("a", GlobalController.findBestTitle(new NetworkFeed[] { df1, df2 }));
        assertEquals("a", GlobalController.findBestTitle(new NetworkFeed[] { df2, df1 }));
        assertNull(GlobalController.findBestTitle(new NetworkFeed[0]));
    }
View Full Code Here

     */
    public void testIsVisible()
    {
        manager.setColor(FeedClass.READ, Color.YELLOW);

        DirectFeed channel = new DirectFeed();
        assertTrue("Wrong state.", manager.isVisible(channel));

        manager.setColor(FeedClass.READ, null);
        assertFalse("Wrong state.", manager.isVisible(channel));
    }
View Full Code Here

        ResourceUtils.setBundlePath("Resource");

        // Create a feed with an article
        StandardArticle article1 = new StandardArticle("1");
        DirectFeed feed = new DirectFeed();
        feed.appendArticle(article1);

        // Create a model with an item
        model = new ResultsListModel();
        model.addListener((IResultsListModelListener)listener.proxy());
        item = new ResultItem(article1);
View Full Code Here

        ResourceUtils.setBundlePath("Resource");

        // Create a feed with an article
        StandardArticle article1 = new StandardArticle("1");
        DirectFeed feed = new DirectFeed();
        feed.appendArticle(article1);

        // Create a model with an item
        model = new ResultsListModel();
        item = new ResultItem(article1);
    }
View Full Code Here

     *
     * @return <code>TRUE</code> if matches.
     */
    private static boolean matchFeed(String title, String pattern, boolean pinnedArticlesOnly)
    {
        DirectFeed feed = new DirectFeed();
        feed.setBaseTitle(title);

        return SearchEngine.createMatcher(pattern, pinnedArticlesOnly).matches(feed);
    }
View Full Code Here

    private DirectFeed feed;

    protected void setUp() throws Exception
    {
        super.setUp();
        feed = new DirectFeed();
    }
View Full Code Here

        throws MalformedURLException
    {
        StandardGuide guide = new StandardGuide();
        ReadingList list = new ReadingList(new URL("file://test"));
        guide.add(list);
        DirectFeed feedDyn = new DirectFeed();
        feedDyn.setBaseTitle("dyn");
        feedDyn.setXmlURL(new URL("file://dyn"));
        list.add(feedDyn);

        DirectFeed feedStat = new DirectFeed();
        feedStat.setBaseTitle("stat");
        feedStat.setXmlURL(new URL("file://stat"));
        guide.add(feedStat);

        // Checking
        OPMLGuide opmlGuide = Converter.convertToOPML(guide);
        OPMLReadingList[] lists = opmlGuide.getReadingLists();
View Full Code Here

TOP

Related Classes of com.salas.bb.domain.DirectFeed

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.