Package org.jboss.seam.wiki.core.feeds

Examples of org.jboss.seam.wiki.core.feeds.FeedDAO


            }
        }.run();

        new NonFacesRequest("/wiki.xhtml") {
            protected void renderResponse() throws Exception {
                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);
                checkTestDocumentIsOnFeed("System Administrator", "AAA", feedDAO.findFeed(1l), 0);
                checkTestDocumentIsOnFeed("System Administrator", "BBB", feedDAO.findFeed(2l), 0);
            }
        }.run();

    }
View Full Code Here


            }
        }.run();

        new NonFacesRequest("/wiki.xhtml") {
            protected void renderResponse() throws Exception {
                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);
                checkFeedHasEntries(feedDAO.findFeed(1l), 0);
                checkFeedHasEntries(feedDAO.findFeed(2l), 0);
            }
        }.run();

    }
View Full Code Here

            protected void invokeApplication() throws Exception {

                WikiNodeDAO nodeDAO = (WikiNodeDAO)getInstance(WikiNodeDAO.class);
                WikiDocument document = nodeDAO.findWikiDocument(9l);

                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);

                List<WikiFeed> feeds = feedDAO.findFeeds(document);
                assert feeds.size() == 2;
                assert feeds.get(0).getId().equals(2l);
                assert feeds.get(1).getId().equals(1l);
            }
        }.run();
View Full Code Here

            protected void invokeApplication() throws Exception {

                WikiNodeDAO nodeDAO = (WikiNodeDAO)getInstance(WikiNodeDAO.class);
                WikiDocument document = nodeDAO.findWikiDocument(9l);

                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);

                assert feedDAO.isOnSiteFeed(document);
            }
        }.run();
    }
View Full Code Here

            protected void invokeApplication() throws Exception {

                WikiNodeDAO nodeDAO = (WikiNodeDAO)getInstance(WikiNodeDAO.class);
                WikiDirectory dir = nodeDAO.findWikiDirectory(2l);

                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);

                List<WikiFeed> feeds = feedDAO.findParentFeeds(dir, true);

                assert feeds.size() == 2;
                assert feeds.get(0).getId().equals(2l);
                assert feeds.get(1).getId().equals(1l);
View Full Code Here

            // Feed entries should be gone
            protected void renderResponse() throws Exception {
                WikiNodeDAO nodeDAO = (WikiNodeDAO)getInstance(WikiNodeDAO.class);
                WikiDocument document = nodeDAO.findWikiDocument(9l);

                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);

                List<WikiFeed> feeds = feedDAO.findFeeds(document);
                assert feeds.size() == 0;
            }
        }.run();

        loginAdmin();
View Full Code Here

            // Feed entries should be gone
            protected void renderResponse() throws Exception {
                WikiNodeDAO nodeDAO = (WikiNodeDAO)getInstance(WikiNodeDAO.class);
                WikiDocument document = nodeDAO.findWikiDocument(9l);

                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);

                List<WikiFeed> feeds = feedDAO.findFeeds(document);
                assert feeds.size() == 0;
            }
        }.run();

        loginAdmin();
View Full Code Here

TOP

Related Classes of org.jboss.seam.wiki.core.feeds.FeedDAO

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.