com.stratelia.webactiv.beans.admin
Class GroupSynchronizationRuleTest

java.lang.Object
  extended by com.stratelia.webactiv.beans.admin.GroupSynchronizationRuleTest

public class GroupSynchronizationRuleTest
extends Object

Author:
Yohann Chastagnier

Field Summary
 org.junit.rules.ExpectedException exception
           
 MockByReflectionRule reflectionRule
           
 
Constructor Summary
GroupSynchronizationRuleTest()
           
 
Method Summary
 void errorShouldContainsOriginalOne()
           
 void escapedParenthesesShouldBeTakenIntoAccount()
           
 void getUserIdsFromAdminAccessLevelRuleShouldReturnAdminUsers()
           
 void getUserIdsFromAllAccessLevelRuleShouldReturnAllUsers()
           
 void getUserIdsFromCombinationRuleWithAndClause()
           
 void getUserIdsFromCombinationRuleWithNegateOperator()
           
 void getUserIdsFromCombinationRuleWithNegateOperatorOnSeveralOperands()
           
 void getUserIdsFromCombinationRuleWithOrClause()
           
 void getUserIdsFromCombinationRuleWithoutClause()
           
 void getUserIdsFromCombinationRuleWithSubCondition()
           
 void getUserIdsFromCombinationRuleWithSubSubCondition()
           
 void getUserIdsFromDomainRuleShouldReturnAllUsersOfDomain()
           
 void getUserIdsFromEmptyRuleShouldReturnEmptyList()
           
 void getUserIdsFromGroupRuleShouldReturnAllUsersOfGroupAndNotThoseOfSubGroups()
           
 void getUserIdsFromGroupWithSubGroupsRuleShouldReturnAllUsersOfGroupAndSubGroups()
           
 void getUserIdsFromNullRuleShouldReturnEmptyList()
           
 void getUserIdsFromSpecificPropertyRuleShouldReturnUsersWhichVerifyTheCondition()
           
 void getUserIdsFromUserAccessLevelRuleShouldReturnSimpleUsers()
           
 void getUserIdsFromWrongDomainIdFormatRuleShouldThrowAnNumberFormatException()
           
 void negateOperatorCanNotBeUsedDirectlyIntoSimpleSilverpeasRule()
           
 void notEscapedParenthesesButSimpleValueShouldBeTakenIntoAccount()
           
 void notEscapedParenthesesShouldThrowAnError()
           
 void setup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reflectionRule

public MockByReflectionRule reflectionRule

exception

public org.junit.rules.ExpectedException exception
Constructor Detail

GroupSynchronizationRuleTest

public GroupSynchronizationRuleTest()
Method Detail

setup

public void setup()
           throws Exception
Throws:
Exception

getUserIdsFromNullRuleShouldReturnEmptyList

public void getUserIdsFromNullRuleShouldReturnEmptyList()
                                                 throws Exception
Throws:
Exception

getUserIdsFromEmptyRuleShouldReturnEmptyList

public void getUserIdsFromEmptyRuleShouldReturnEmptyList()
                                                  throws Exception
Throws:
Exception

notEscapedParenthesesShouldThrowAnError

public void notEscapedParenthesesShouldThrowAnError()
                                             throws Exception
Throws:
Exception

errorShouldContainsOriginalOne

public void errorShouldContainsOriginalOne()
                                    throws Exception
Throws:
Exception

notEscapedParenthesesButSimpleValueShouldBeTakenIntoAccount

public void notEscapedParenthesesButSimpleValueShouldBeTakenIntoAccount()
                                                                 throws Exception
Throws:
Exception

escapedParenthesesShouldBeTakenIntoAccount

public void escapedParenthesesShouldBeTakenIntoAccount()
                                                throws Exception
Throws:
Exception

getUserIdsFromAllAccessLevelRuleShouldReturnAllUsers

public void getUserIdsFromAllAccessLevelRuleShouldReturnAllUsers()
                                                          throws Exception
Throws:
Exception

getUserIdsFromAdminAccessLevelRuleShouldReturnAdminUsers

public void getUserIdsFromAdminAccessLevelRuleShouldReturnAdminUsers()
                                                              throws Exception
Throws:
Exception

getUserIdsFromUserAccessLevelRuleShouldReturnSimpleUsers

public void getUserIdsFromUserAccessLevelRuleShouldReturnSimpleUsers()
                                                              throws Exception
Throws:
Exception

getUserIdsFromDomainRuleShouldReturnAllUsersOfDomain

public void getUserIdsFromDomainRuleShouldReturnAllUsersOfDomain()
                                                          throws Exception
Throws:
Exception

getUserIdsFromWrongDomainIdFormatRuleShouldThrowAnNumberFormatException

public void getUserIdsFromWrongDomainIdFormatRuleShouldThrowAnNumberFormatException()
                                                                             throws Exception
Throws:
Exception

getUserIdsFromGroupRuleShouldReturnAllUsersOfGroupAndNotThoseOfSubGroups

public void getUserIdsFromGroupRuleShouldReturnAllUsersOfGroupAndNotThoseOfSubGroups()
                                                                              throws Exception
Throws:
Exception

getUserIdsFromGroupWithSubGroupsRuleShouldReturnAllUsersOfGroupAndSubGroups

public void getUserIdsFromGroupWithSubGroupsRuleShouldReturnAllUsersOfGroupAndSubGroups()
                                                                                 throws Exception
Throws:
Exception

getUserIdsFromSpecificPropertyRuleShouldReturnUsersWhichVerifyTheCondition

public void getUserIdsFromSpecificPropertyRuleShouldReturnUsersWhichVerifyTheCondition()
                                                                                throws Exception
Throws:
Exception

getUserIdsFromCombinationRuleWithoutClause

public void getUserIdsFromCombinationRuleWithoutClause()
                                                throws Exception
Throws:
Exception

getUserIdsFromCombinationRuleWithAndClause

public void getUserIdsFromCombinationRuleWithAndClause()
                                                throws Exception
Throws:
Exception

getUserIdsFromCombinationRuleWithOrClause

public void getUserIdsFromCombinationRuleWithOrClause()
                                               throws Exception
Throws:
Exception

getUserIdsFromCombinationRuleWithNegateOperator

public void getUserIdsFromCombinationRuleWithNegateOperator()
                                                     throws Exception
Throws:
Exception

negateOperatorCanNotBeUsedDirectlyIntoSimpleSilverpeasRule

public void negateOperatorCanNotBeUsedDirectlyIntoSimpleSilverpeasRule()
                                                                throws Exception
Throws:
Exception

getUserIdsFromCombinationRuleWithNegateOperatorOnSeveralOperands

public void getUserIdsFromCombinationRuleWithNegateOperatorOnSeveralOperands()
                                                                      throws Exception
Throws:
Exception

getUserIdsFromCombinationRuleWithSubCondition

public void getUserIdsFromCombinationRuleWithSubCondition()
                                                   throws Exception
Throws:
Exception

getUserIdsFromCombinationRuleWithSubSubCondition

public void getUserIdsFromCombinationRuleWithSubSubCondition()
                                                      throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.