test_class.declarator: rules = {
  		"4|deny|all",
  		"1|allow|self",
  		"3|allow|jid|pubsub@test.com",
  		"2|allow|jid|admin@test2.com", }
test_class.original_string: String[] rules = {
  		"4|deny|all",
  		"1|allow|self",
  		"3|allow|jid|pubsub@test.com",
  		"2|allow|jid|admin@test2.com", };
test_class.type: String[]
test_class.var_name: rules
test_class.file: tigase-server 7.1.0/src/test/java/tigase/vhosts/filter/CustomDomainFilterTest.java
test_class.identifier: CustomDomainFilterTest
test_case.body: @Test
  	public void testParseRulesString() throws TigaseStringprepException, ParseException {
  		System.out.println( "parseRules" );
  		String rulseString = "4|deny|all;1|allow|self;3|allow|jid|pubsub@test.com;2|allow|jid|admin@test2.com";
  
  		Set<Rule> expResult = new TreeSet<>();
  		Rule rule = new Rule( 1, true, RuleType.self, null );
  
  		if ( rule != null ){
  			expResult.add( rule );
  		}
  		rule = new Rule( 2, true, RuleType.jid, JID.jidInstance( "admin@test2.com" ) );
  		if ( rule != null ){
  			expResult.add( rule );
  		}
  		rule = new Rule( 3, true, RuleType.jid, JID.jidInstance( "pubsub@test.com" ) );
  		if ( rule != null ){
  			expResult.add( rule );
  		}
  		rule = new Rule( 4, false, RuleType.all, null );
  		if ( rule != null ){
  			expResult.add( rule );
  		}
  
  		Set<Rule> result = CustomDomainFilter.parseRules( rulseString );
  		assertEquals( expResult, result );
  
  		rulseString = "1|allow|self;2|allow|jid|admin@test2.com;3|allow|jid|pubsub@test.com;4|deny|all;";
  		String resultString = new String();
  		for ( Rule res : result) {
  			resultString += res.toConfigurationString();
  		}
  		assertEquals( rulseString, resultString );
  
  	}
test_case.class_method_signature: CustomDomainFilterTest.testParseRulesString()
test_case.full_signature: @Test public void testParseRulesString()
test_case.identifier: testParseRulesString
test_case.invocations: println add jidInstance add jidInstance add add parseRules assertEquals toConfigurationString assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParseRulesString()
focal_class.declarator: log = Logger.getLogger( CustomDomainFilter.class.getName() )
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = Logger.getLogger( CustomDomainFilter.class.getName() );
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: tigase-server 7.1.0/src/main/java/tigase/vhosts/filter/CustomDomainFilter.java
focal_class.identifier: CustomDomainFilter
focal_class.class_method_signature: CustomDomainFilter.CustomDomainFilter()
focal_class.full_signature: private  CustomDomainFilter()
focal_class.identifier: CustomDomainFilter
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  CustomDomainFilter()
focal_class.class_method_signature: CustomDomainFilter.parseRules( String rules )
focal_class.full_signature: public static Set<Rule> parseRules( String rules )
focal_class.identifier: parseRules
focal_class.modifiers: public static
focal_class.parameters: ( String rules )
focal_class.return: Set<Rule>
focal_class.signature: Set<Rule> parseRules( String rules )
focal_class.class_method_signature: CustomDomainFilter.parseRules( String[] rules )
focal_class.full_signature: public static Set<Rule> parseRules( String[] rules )
focal_class.identifier: parseRules
focal_class.modifiers: public static
focal_class.parameters: ( String[] rules )
focal_class.return: Set<Rule>
focal_class.signature: Set<Rule> parseRules( String[] rules )
focal_class.class_method_signature: CustomDomainFilter.isAllowed( JID source, JID destination, String rules )
focal_class.full_signature: public static boolean isAllowed( JID source, JID destination, String rules )
focal_class.identifier: isAllowed
focal_class.modifiers: public static
focal_class.parameters: ( JID source, JID destination, String rules )
focal_class.return: boolean
focal_class.signature: boolean isAllowed( JID source, JID destination, String rules )
focal_class.class_method_signature: CustomDomainFilter.isAllowed( JID source, JID destination, String[] rules )
focal_class.full_signature: public static boolean isAllowed( JID source, JID destination, String[] rules )
focal_class.identifier: isAllowed
focal_class.modifiers: public static
focal_class.parameters: ( JID source, JID destination, String[] rules )
focal_class.return: boolean
focal_class.signature: boolean isAllowed( JID source, JID destination, String[] rules )
focal_class.class_method_signature: CustomDomainFilter.isAllowed( JID source, JID destination, Set<Rule> rules )
focal_class.full_signature: public static boolean isAllowed( JID source, JID destination, Set<Rule> rules )
focal_class.identifier: isAllowed
focal_class.modifiers: public static
focal_class.parameters: ( JID source, JID destination, Set<Rule> rules )
focal_class.return: boolean
focal_class.signature: boolean isAllowed( JID source, JID destination, Set<Rule> rules )
focal_method.body: public static Set<Rule> parseRules( String rules ) throws ParseException {
  		String[] rulesArr = rules.split( ";" );
  		if ( rulesArr != null ){
  			return parseRules( rulesArr );
  		}
  		return null;
  	}
focal_method.class_method_signature: CustomDomainFilter.parseRules( String rules )
focal_method.full_signature: public static Set<Rule> parseRules( String rules )
focal_method.identifier: parseRules
focal_method.invocations: split parseRules
focal_method.modifiers: public static
focal_method.parameters: ( String rules )
focal_method.return: Set<Rule>
focal_method.signature: Set<Rule> parseRules( String rules )