Examples of IContentFinderAction


Examples of com.agiletec.plugins.jacms.apsadmin.content.IContentFinderAction

  public void testList() throws Throwable {
    this.setUserOnSession("admin");
    this.initAction("/do/jpnewsletter/Newsletter", "list");
    String result = this.executeAction();
    assertEquals(Action.SUCCESS, result);
    IContentFinderAction action = (IContentFinderAction) this.getAction();
    List<String> contentIds = action.getContents();
    assertEquals(1, contentIds.size());
    assertTrue(contentIds.contains("ART180"));
  }
View Full Code Here

Examples of com.agiletec.plugins.jacms.apsadmin.content.IContentFinderAction

  public void testSearch_1() throws Throwable {
    try {
      this._helper.setWorkflowConfig();
      Map<String, String> params = new HashMap<String, String>();
      this.executeSearch("admin", params);
      IContentFinderAction action = (IContentFinderAction) this.getAction();
      //action = (IContentFinderAction) this.getAction();
      List<String> contents = action.getContents();
      assertEquals(24, contents.size());
      this.executeSearch("editorCoach", params);
      action = (IContentFinderAction) this.getAction();
      contents = action.getContents();
      String[] contentsId = { "ART112", "ART102", "ART104", "RAH101" };
      assertEquals(contentsId.length, contents.size());
      for (int i = 0; i < contentsId.length; i++) {
        String contentId = contentsId[i];
        assertTrue(contents.contains(contentId));
View Full Code Here

Examples of com.agiletec.plugins.jacms.apsadmin.content.IContentFinderAction

      this._helper.setWorkflowConfig();
      this._helper.setContentStates();
      Map<String, String> params = new HashMap<String, String>();
     
      this.executeSearch("admin", params);
      IContentFinderAction action = (IContentFinderAction) this.getAction();
      action = (IContentFinderAction) this.getAction();
      List<String> contents = action.getContents();
      assertEquals(24, contents.size());
     
      this.executeSearch("editorCoach", params);
      action = (IContentFinderAction) this.getAction();
      contents = action.getContents();
      String[] contentsId = { "ART102", "ART112" };
      assertEquals(contentsId.length, contents.size());
      for (int i = 0; i < contentsId.length; i++) {
        String contentId = contentsId[i];
        assertTrue(contents.contains(contentId));
      }
     
      this.executeSearch("supervisorCoach", params);
      action = (IContentFinderAction) this.getAction();
      contents = action.getContents();
      contentsId = new String[]{ "ART102", "ART111", "ART112", "RAH101" };
      assertEquals(contentsId.length, contents.size());
      for (int i = 0; i < contentsId.length; i++) {
        String contentId = contentsId[i];
        assertTrue(contents.contains(contentId));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.