org.alfresco.repo.web.scripts.rule
Class RuleServiceTest

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

public class RuleServiceTest
extends BaseWebScriptTest

Unit test to test rules Web Script API


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
RuleServiceTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCreateRule()
           
 void testDeleteRule()
           
 void testGetActionConditionDefinitions()
           
 void testGetActionConstraint()
           
 void testGetActionConstraints()
           
 void testGetActionDefinitions()
           
 void testGetInheritedRulesCollection()
           
 void testGetRuleDetails()
           
 void testGetRulesCollection()
           
 void testGetRuleset()
           
 void testGetRuleTypes()
           
 void testQueueAction()
           
 void testRuleReorder()
           
 void testUpdateRule()
           
 
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

RuleServiceTest

public RuleServiceTest()
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

testGetRuleTypes

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

testGetActionDefinitions

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

testGetActionConditionDefinitions

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

testGetActionConstraints

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

testGetActionConstraint

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

testQueueAction

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

testCreateRule

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

testGetRulesCollection

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

testGetInheritedRulesCollection

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

testGetRuleset

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

testGetRuleDetails

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

testUpdateRule

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

testDeleteRule

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

testRuleReorder

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


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