org.alfresco.repo.web.scripts.audit
Class AuditWebScriptTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.web.scripts.BaseWebScriptTest
              extended by org.alfresco.repo.web.scripts.audit.AuditWebScriptTest
All Implemented Interfaces:
junit.framework.Test

public class AuditWebScriptTest
extends BaseWebScriptTest

Test the audit web scripts

Since:
3.4

Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.web.scripts.BaseWebScriptTest
BaseWebScriptTest.BaseWebScriptTestListener, BaseWebScriptTest.HttpMethodResponse, BaseWebScriptTest.PatchMethod, BaseWebScriptTest.RemoteServer, BaseWebScriptTest.WebScriptTestListener
 
Constructor Summary
AuditWebScriptTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testClearAuditRepo()
           
 void testGetIsAuditEnabledGlobally()
           
 void testGetIsAuditEnabledMissingApp()
           
 void testGetIsAuditEnabledRepo()
           
 void testGetWithoutPermissions()
           
 void testQueryAuditRepo()
           
 void testSetAuditEnabledGlobally()
           
 void testSetAuditEnabledRepo()
           
 
Methods inherited from class org.alfresco.repo.web.scripts.BaseWebScriptTest
getDefaultRunAs, getRemoteServer, getServer, isLogEnabled, log, sendLocalRequest, sendRemoteRequest, sendRequest, sendRequest, setCustomContext, setDefaultRunAs, setListener, setRemoteServer, setTraceReqRes
 
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

AuditWebScriptTest

public AuditWebScriptTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class BaseWebScriptTest
Throws:
java.lang.Exception

tearDown

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

testGetWithoutPermissions

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

testGetIsAuditEnabledGlobally

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

testGetIsAuditEnabledMissingApp

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

testSetAuditEnabledGlobally

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

testGetIsAuditEnabledRepo

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

testSetAuditEnabledRepo

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

testClearAuditRepo

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

testQueryAuditRepo

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


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