Package com.agiletec.plugins.jacms.aps.system.services.resource.model

Examples of com.agiletec.plugins.jacms.aps.system.services.resource.model.ResourceInterface


    assertTrue(resourceVO.getXml().length() > 0 );
  }
 
  public void testAddGetDel_TrashedResource() throws ApsSystemException{
    String resourceId = "22";
    ResourceInterface resource = _resourceManager.loadResource(resourceId);
   
    assertNotNull(resource);
   
    _trashedResourceDAO.addTrashedResource(resource);
   
    ResourceRecordVO resourceVO = _trashedResourceDAO.getTrashedResource(resource.getId());
    assertNotNull(resourceVO);
    assertEquals( resource.getDescr(), resourceVO.getDescr());
    assertEquals( resource.getMainGroup(), resourceVO.getMainGroup());
    assertEquals( resource.getResourcePrototype().getType(), resourceVO.getResourceType());
    assertEquals( resource.getXML(), resourceVO.getXml());
   
    _trashedResourceDAO.delTrashedResource(resource.getId());
  }
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jacms.aps.system.services.resource.model.ResourceInterface

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.