Package com.agiletec.plugins.jpversioning.apsadmin.resource

Examples of com.agiletec.plugins.jpversioning.apsadmin.resource.ITrashedResourceAction


    this.setUserOnSession("admin");
    this.initAction("/do/jpversioning/Resource/Trash", "list");
    this.addParameter("resourceTypeCode", "Image");
    String result = this.executeAction();
    assertEquals("success", result);
    ITrashedResourceAction action = (ITrashedResourceAction) this.getAction();
    assertNotNull(action);
    assertTrue(action instanceof com.agiletec.plugins.jpversioning.apsadmin.resource.ITrashedResourceAction);
  }
View Full Code Here


    this.setUserOnSession("admin");
    this.initAction("/do/jpversioning/Resource/Trash", "list");
    this.addParameter("resourceTypeCode", "Image");
    String result = this.executeAction();
    assertEquals("success", result);
    ITrashedResourceAction action = (ITrashedResourceAction) this.getAction();
    List<String> trashedResources = action.getTrashedResources();
    assertNotNull(trashedResources);
    assertEquals(5, trashedResources.size());
    assertEquals("67", trashedResources.get(0));
   
   
    this.setUserOnSession("admin");
    this.initAction("/do/jpversioning/Resource/Trash", "list");
    this.addParameter("resourceTypeCode", "Image");
    this.addParameter("text", "tux");
    result = this.executeAction();
    assertEquals("success", result);
    action = (ITrashedResourceAction) this.getAction();
    trashedResources = action.getTrashedResources();
    assertNotNull(trashedResources);
    assertEquals(1, trashedResources.size());
    assertEquals("70", trashedResources.get(0));
   
    this.initAction("/do/jpversioning/Resource/Trash", "list");
    this.addParameter("resourceTypeCode", "Attach");
    result = this.executeAction();
    assertEquals("success", result);
    action = (ITrashedResourceAction) this.getAction();
    trashedResources = action.getTrashedResources();
    assertNotNull(trashedResources);
    assertEquals(1, trashedResources.size());
    assertEquals("66", trashedResources.get(0));
  }
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpversioning.apsadmin.resource.ITrashedResourceAction

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.