Examples of VersionFinderAction


Examples of com.agiletec.plugins.jpversioning.apsadmin.versioning.VersionFinderAction

 
  public void testList() throws Throwable{
    String result = this.executeList("admin");
    assertEquals(Action.SUCCESS, result);
   
    VersionFinderAction action = (VersionFinderAction) this.getAction();
    List<Long> lastVersionsId = action.getLatestVersions();
    assertEquals(1, lastVersionsId.size());
    assertEquals(3, lastVersionsId.get(0).longValue());
   
    ContentVersion contentVersion = action.getContentVersion(3);
    assertEquals(3, contentVersion.getId());
    assertEquals("1.0", contentVersion.getVersion());
    assertEquals(1, contentVersion.getOnlineVersion());
    assertEquals("ART1", contentVersion.getContentId());
    assertEquals("ART", contentVersion.getContentType());
View Full Code Here

Examples of com.agiletec.plugins.jpversioning.apsadmin.versioning.VersionFinderAction

 
  public void testSearch() throws Throwable{
    String result = this.executeSearch("admin", null, null);
    assertEquals(Action.SUCCESS, result);
   
    VersionFinderAction action = (VersionFinderAction) this.getAction();
    List<Long> lastVersionsId = action.getLatestVersions();
    assertEquals(1, lastVersionsId.size());
    assertEquals(3, lastVersionsId.get(0).longValue());
   
    result = this.executeSearch("admin", "No descr", null);
    assertEquals(Action.SUCCESS, result);
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.