svn commit: r653803 - /lenya/branches/branch_1_2_x_shibboleth/src/test/org/apache/lenya/ac/impl/RuleEvaluatorTest.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Tue May  6 08:14:23 2008
New Revision: 653803

URL: http://svn.apache.org/viewvc?rev=653803&view=rev
Log:
Adding string comparison to rule evaluator test.

Modified:
    lenya/branches/branch_1_2_x_shibboleth/src/test/org/apache/lenya/ac/impl/RuleEvaluatorTest.java

Modified: lenya/branches/branch_1_2_x_shibboleth/src/test/org/apache/lenya/ac/impl/RuleEvaluatorTest.java
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/test/org/apache/lenya/ac/impl/RuleEvaluatorTest.java?rev=653803&r1=653802&r2=653803&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/test/org/apache/lenya/ac/impl/RuleEvaluatorTest.java (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/test/org/apache/lenya/ac/impl/RuleEvaluatorTest.java Tue May  6 08:14:23 2008
@@ -50,6 +50,13 @@
         
         assertTrue(evaluator.isComplied(user, ATTR_NAME + " == \"bar\""));
         assertFalse(evaluator.isComplied(user, ATTR_NAME + " == \"baz\""));
+        
+        String[] value = { "foo" };
+        user.setAttributeValues(ATTR_NAME, value);
+        assertTrue(evaluator.isComplied(user, ATTR_NAME + " == \"foo\""));
+        assertFalse(evaluator.isComplied(user, ATTR_NAME + " == \"bar\""));
+        
+
     }
 
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.