You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/02/20 13:09:46 UTC
svn commit: r379112 - in /lenya/trunk/src/test/org/apache/lenya:
ac/file/FileUserTest.java ac/impl/AccessControlTest.java
cms/workflow/WorkflowTest.xtest
Author: andreas
Date: Mon Feb 20 04:09:36 2006
New Revision: 379112
URL: http://svn.apache.org/viewcvs?rev=379112&view=rev
Log:
Fixed some tests
Removed:
lenya/trunk/src/test/org/apache/lenya/cms/workflow/WorkflowTest.xtest
Modified:
lenya/trunk/src/test/org/apache/lenya/ac/file/FileUserTest.java
lenya/trunk/src/test/org/apache/lenya/ac/impl/AccessControlTest.java
Modified: lenya/trunk/src/test/org/apache/lenya/ac/file/FileUserTest.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/test/org/apache/lenya/ac/file/FileUserTest.java?rev=379112&r1=379111&r2=379112&view=diff
==============================================================================
--- lenya/trunk/src/test/org/apache/lenya/ac/file/FileUserTest.java (original)
+++ lenya/trunk/src/test/org/apache/lenya/ac/file/FileUserTest.java Mon Feb 20 04:09:36 2006
@@ -130,7 +130,7 @@
* @throws AccessControlException if an error occurs
*/
final public void testSave() throws AccessControlException {
- String userName = "alice";
+ String userName = "aliceTest";
createAndSaveUser(userName, "Alice Wonderland", "alice@wonderland.org", "secret");
File configDir = getAccreditablesDirectory();
@@ -144,7 +144,7 @@
* @throws AccessControlException if an error occurs
*/
final public void testGetEmail() throws AccessControlException {
- String userID = "alice";
+ String userID = "aliceTest";
String email = "alice@wonderland.org";
User user = createAndSaveUser(userID, "Alice Wonderland", email, "secret");
assertTrue(user.getEmail().equals(email));
@@ -158,7 +158,7 @@
* @throws AccessControlException if an error occurs
*/
final public void testGetName() throws AccessControlException {
- String userID = "alice";
+ String userID = "aliceTest";
String userName = "Alice Wonderland";
FileUser user = createAndSaveUser(userID, userName, "alice@wonderland.org", "secret");
assertTrue(user.getName().equals(userName));
@@ -187,7 +187,7 @@
* @throws AccessControlException if an error occurs
*/
final public void testGetId() throws AccessControlException {
- String id = "alice";
+ String id = "aliceTest";
FileUser user = createAndSaveUser(id, "Alice Wonderland", "alice@wonderland.org", "secret");
assertTrue(user.getId().equals(id));
}
Modified: lenya/trunk/src/test/org/apache/lenya/ac/impl/AccessControlTest.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/test/org/apache/lenya/ac/impl/AccessControlTest.java?rev=379112&r1=379111&r2=379112&view=diff
==============================================================================
--- lenya/trunk/src/test/org/apache/lenya/ac/impl/AccessControlTest.java (original)
+++ lenya/trunk/src/test/org/apache/lenya/ac/impl/AccessControlTest.java Mon Feb 20 04:09:36 2006
@@ -25,6 +25,7 @@
import org.apache.cocoon.environment.Session;
import org.apache.lenya.ac.AccessControlException;
import org.apache.lenya.ac.AccessControllerResolver;
+import org.apache.lenya.ac.Accreditable;
import org.apache.lenya.ac.AccreditableManager;
import org.apache.lenya.ac.Identity;
import org.apache.lenya.ac.PolicyManager;
@@ -70,6 +71,11 @@
}
getAccessController().authorize(getRequest());
+
+ Accreditable[] accrs = identity.getAccreditables();
+ for (int i = 0; i < accrs.length; i++) {
+ getLogger().info("Accreditable: " + accrs[i]);
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org