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());
}