org.alfresco.repo.web.scripts.archive
Class NodeArchiveServiceRestApiTest

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.archive.NodeArchiveServiceRestApiTest
All Implemented Interfaces:
junit.framework.Test

public class NodeArchiveServiceRestApiTest
extends BaseWebScriptTest

This class tests the ReST API of the NodeArchiveService.

Since:
3.5

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
NodeArchiveServiceRestApiTest()
           
 
Method Summary
protected  void setUp()
           
 void tearDown()
           
 void testGetDeletedItems()
          This test calls the GET REST API to read some deleted items from the archive store and checks the various JSON data fields.
 void testPurgeDeletedItems()
          This test method purges some deleted nodes from the archive store.
 void testRestoreDeletedItems()
          This test method restores some deleted nodes from the archive store.
 
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

NodeArchiveServiceRestApiTest

public NodeArchiveServiceRestApiTest()
Method Detail

setUp

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

tearDown

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

testGetDeletedItems

public void testGetDeletedItems()
                         throws java.lang.Exception
This test calls the GET REST API to read some deleted items from the archive store and checks the various JSON data fields.

Throws:
java.lang.Exception

testPurgeDeletedItems

public void testPurgeDeletedItems()
                           throws java.lang.Exception
This test method purges some deleted nodes from the archive store.

Throws:
java.lang.Exception

testRestoreDeletedItems

public void testRestoreDeletedItems()
                             throws java.lang.Exception
This test method restores some deleted nodes from the archive store.

Throws:
java.lang.Exception


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