Package com.sun.syndication.aqueduct.prevayler

Examples of com.sun.syndication.aqueduct.prevayler.SyndFeedSystem


     * Test the query with a non-prevalent system.
     */
    public void testQuery()
    {
        // Setup variables
        SyndFeedSystem system = new SyndFeedSystem();
        String uuid1 = "uuid-test-0000-0001";
        String uuid2 = "uuid-test-0000-0002";
        String uuid3 = "uuid-test-0000-0003";
        system.insertFeed(uuid1, new SyndFeedImpl());
        system.insertFeed(uuid2, new SyndFeedImpl());
        system.insertFeed(uuid3, new SyndFeedImpl());

        // Positive test
        selectSyndFeedUUIDs = new SelectSyndFeedUUIDs();
        Collection uuidColl = (Collection) selectSyndFeedUUIDs.query(system,  new Date());
        assertNotNull("Collection must be returned.", uuidColl);
View Full Code Here


     * Test the execution on a non-prevalent system.
     */
    public void testExecuteAndQuery()
    {
        // Setup variables
        SyndFeedSystem system = new SyndFeedSystem();
        String uuid = "uuid-test-0000-0001";
        SyndFeedImpl testFeed = new SyndFeedImpl();
        insertSyndFeed = new InsertSyndFeed(uuid, testFeed);

        // Postive test
View Full Code Here

     * @throws Exception
     */
    public void testExecuteAndQuery() throws Exception
    {
        // Setup variables
        SyndFeedSystem system = new SyndFeedSystem();
        String uuid = "uuid-test-0000-0001";
        SyndFeed syndFeed = new SyndFeedImpl();
        system.insertFeed(uuid, syndFeed);

        // Positive test
        deleteSyndFeed = new DeleteSyndFeed(uuid);
        SyndFeed result = (SyndFeed) deleteSyndFeed.executeAndQuery(system, new Date());
        assertSame("The removed SyndFeed should be returned.", syndFeed, result);
View Full Code Here

     * Test the query with a non-prevalent system.
     */
    public void testQuery()
    {
        // Setup variables
        SyndFeedSystem system = new SyndFeedSystem();
        String uuid1 = "uuid-test-0000-0001";
        String uuid2 = "uuid-test-0000-0002";
        String uuid3 = "uuid-test-0000-0003";
        SyndFeed syndFeed1 = new SyndFeedImpl();
        syndFeed1.setTitle("Feed1");
        SyndFeed syndFeed2 = new SyndFeedImpl();
        syndFeed1.setTitle("Feed2");
        SyndFeed syndFeed3 = new SyndFeedImpl();
        syndFeed1.setTitle("Feed3");
        system.insertFeed(uuid1, syndFeed1);
        system.insertFeed(uuid2, syndFeed2);
        system.insertFeed(uuid3, syndFeed3);

        // Positive test
        selectSyndFeeds = new SelectSyndFeeds();
        Collection uuidColl = (Collection) selectSyndFeeds.query(system,  new Date());
        assertNotNull("Collection must be returned.", uuidColl);
View Full Code Here

     * @throws Exception
     */
    public void testExecuteAndQuery() throws Exception
    {
        // Setup variables
        SyndFeedSystem system = new SyndFeedSystem();
        String uuid = "uuid-test-0000-0001";
        SyndFeed syndFeed = new SyndFeedImpl();
        SyndFeed syndFeed2 = new SyndFeedImpl();
        system.insertFeed(uuid, syndFeed);

        // Positive test
        updateSyndFeed = new UpdateSyndFeed(uuid, syndFeed);


View Full Code Here

TOP

Related Classes of com.sun.syndication.aqueduct.prevayler.SyndFeedSystem

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.