org.alfresco.repo.audit
Class AuditComponentTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.audit.AuditComponentTest
All Implemented Interfaces:
junit.framework.Test

public class AuditComponentTest
extends junit.framework.TestCase

Tests component-level auditing i.e. audit sessions and audit logging.

Since:
3.2
See Also:
AuditComponent, AuditComponentImpl

Constructor Summary
AuditComponentTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testAreAuditValuesRequired()
           
 void testAudit_Action01()
          Test auditing of something resembling real-world data
 void testAudit_Action01Mapped()
          Test auditing of something resembling real-world data
 void testAudit_Action02Sourced()
          Test auditing using alternative data sources
 void testAudit_Basic()
          Start a session and use it within a single txn
 void testAudit_EnableDisableAuditPaths()
          Test disabling of audit using audit paths
 void testAuditAuthenticationService()
           
 void testAuditQuery_MaxId()
           
 void testAuditWithBadPath()
           
 void testQuery_Action01()
           
 void testSetUp()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuditComponentTest

public AuditComponentTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testSetUp

public void testSetUp()

testAreAuditValuesRequired

public void testAreAuditValuesRequired()

testAuditWithBadPath

public void testAuditWithBadPath()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testAudit_Basic

public void testAudit_Basic()
                     throws java.lang.Exception
Start a session and use it within a single txn

Throws:
java.lang.Exception

testAudit_Action01

public void testAudit_Action01()
                        throws java.lang.Exception
Test auditing of something resembling real-world data

Throws:
java.lang.Exception

testAudit_Action01Mapped

public void testAudit_Action01Mapped()
                              throws java.lang.Exception
Test auditing of something resembling real-world data

Throws:
java.lang.Exception

testAudit_Action02Sourced

public void testAudit_Action02Sourced()
                               throws java.lang.Exception
Test auditing using alternative data sources

Throws:
java.lang.Exception

testQuery_Action01

public void testQuery_Action01()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testAudit_EnableDisableAuditPaths

public void testAudit_EnableDisableAuditPaths()
                                       throws java.lang.Exception
Test disabling of audit using audit paths

Throws:
java.lang.Exception

testAuditAuthenticationService

public void testAuditAuthenticationService()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testAuditQuery_MaxId

public void testAuditQuery_MaxId()
                          throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.