mirror of
				https://github.com/Alfresco/alfresco-community-repo.git
				synced 2025-10-22 15:12:38 +00:00 
			
		
		
		
	Extended testing for 'post' auditing for MNT-16748
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130633 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
		| @@ -215,7 +215,7 @@ public class AuditMethodInterceptorTest extends TestCase | ||||
|             @Override | ||||
|             public ResultSet execute() throws Throwable | ||||
|             { | ||||
|                 return searchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, SearchService.LANGUAGE_XPATH, "/"); | ||||
|                 return searchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, SearchService.LANGUAGE_XPATH, "/company_home"); | ||||
|             } | ||||
|  | ||||
|         }, true, false); | ||||
| @@ -262,9 +262,13 @@ public class AuditMethodInterceptorTest extends TestCase | ||||
|         rowCount.setValue(0); | ||||
|         auditComponent.auditQuery(callback, params, Integer.MAX_VALUE); | ||||
|  | ||||
|         assertEquals("There should be one audit entry.", 1, rowCount.intValue()); | ||||
|         assertTrue("The requested language should be in the audit entry.", | ||||
|         assertEquals("Incorrect number of audit entries", 2, rowCount.intValue()); | ||||
|         assertTrue( | ||||
|                 "The requested language should be in the audit entry.", | ||||
|                 sb.toString().contains(SearchService.LANGUAGE_XPATH)); | ||||
|         assertTrue( | ||||
|                 "The requested language should be in the audit entry.", | ||||
|                 sb.toString().contains("/company_home")); | ||||
|         if (logger.isDebugEnabled()) | ||||
|         { | ||||
|             logger.debug(sb.toString()); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user