Package com.agiletec.plugins.jprss.apsadmin.rss

Examples of com.agiletec.plugins.jprss.apsadmin.rss.RssAction


    this.setUserOnSession("admin");
    this.initAction(NAMESPACE, "new");
   
    String result = this.executeAction();
    assertEquals(Action.SUCCESS, result);
    RssAction action = (RssAction) this.getAction();
    assertEquals(1, action.getStrutsAction());
    Map<String, String> availableCntTypes = action.getAvailableContentTypes();
    assertTrue(availableCntTypes.containsKey("ART"));
    assertEquals(1, availableCntTypes.size());
  }
View Full Code Here


    this.addParameter("strutsAction", "1");
    this.addParameter("contentType", "ART");
    result = this.executeAction();
    assertEquals(Action.SUCCESS, result);
   
    RssAction action = (RssAction) this.getAction();
    Map<String, String> feedTypes = action.getAvailableFeedTypes();
    assertNotNull(feedTypes);
    assertEquals(8, feedTypes.size());
  }
View Full Code Here

   
    this.setUserOnSession("admin");
    this.initAction(NAMESPACE, "list");
    String result = this.executeAction();
    assertEquals(Action.SUCCESS, result);
    RssAction action = (RssAction) this.getAction();
    List<Channel> channels = action.getChannels();
    assertEquals(4, channels.size());
  }
View Full Code Here

    this.initAction(NAMESPACE, "edit");
    String id = new Integer(channel1.getId()).toString();
    this.addParameter("id", id);
    result = this.executeAction();
    assertEquals(Action.SUCCESS, result);
    RssAction action = (RssAction) this.getAction();
    assertEquals(ApsAdminSystemConstants.EDIT, action.getStrutsAction());
    assertEquals("t1", action.getTitle());
    assertEquals("d1", action.getDescription());
    assertTrue(action.isActive());
    assertEquals("cat1", action.getCategory());
    assertEquals("rss_2.0", action.getFeedType());
  }
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jprss.apsadmin.rss.RssAction

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.