org.alfresco.repo.web.scripts.replication
Class ReplicationRestApiTest

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

public class ReplicationRestApiTest
extends BaseWebScriptTest

Tests for the Replication Webscripts


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
ReplicationRestApiTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testReplicationDefinitionDelete()
           
 void testReplicationDefinitionGet()
           
 void testReplicationDefinitionPut()
           
 void testReplicationDefinitionsGet()
           
 void testReplicationDefinitionsNastyNames()
          Test that when creating and working with replication definitions with a name that includes "nasty" characters, things still work.
 void testReplicationDefinitionsPost()
           
 void testReplicationServiceIsEnabled()
           
 
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

ReplicationRestApiTest

public ReplicationRestApiTest()
Method Detail

testReplicationServiceIsEnabled

public void testReplicationServiceIsEnabled()
                                     throws java.lang.Exception
Throws:
java.lang.Exception
Since:
3.5

testReplicationDefinitionsGet

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

testReplicationDefinitionGet

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

testReplicationDefinitionsPost

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

testReplicationDefinitionPut

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

testReplicationDefinitionDelete

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

testReplicationDefinitionsNastyNames

public void testReplicationDefinitionsNastyNames()
                                          throws java.lang.Exception
Test that when creating and working with replication definitions with a name that includes "nasty" characters, things still work. Related to ALF-4610.

Throws:
java.lang.Exception

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


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