Author: andreas
Date: Thu Jul 2 11:21:23 2009
New Revision: 790552
URL: http://svn.apache.org/viewvc?rev=790552&view=rev
Log:
[minor change] make log message more verbose.
Modified:
lenya/branches/BRANCH_2_0_X/src/impl/test/org/apache/lenya/ac/impl/AbstractAccessControlTest.java
Modified: lenya/branches/BRANCH_2_0_X/src/impl/test/org/apache/lenya/ac/impl/AbstractAccessControlTest.java
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/impl/test/org/apache/lenya/ac/impl/AbstractAccessControlTest.java?rev=790552&r1=790551&r2=790552&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/impl/test/org/apache/lenya/ac/impl/AbstractAccessControlTest.java (original)
+++ lenya/branches/BRANCH_2_0_X/src/impl/test/org/apache/lenya/ac/impl/AbstractAccessControlTest.java Thu Jul 2 11:21:23 2009
@@ -41,8 +41,8 @@
import org.apache.lenya.cms.repository.SessionImpl;
/**
- * To change the template for this generated type comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
+ * To change the template for this generated type comment go to Window>Preferences>Java>Code
+ * Generation>Code and Comments
*/
public class AbstractAccessControlTest extends LenyaTestCase {
@@ -50,8 +50,6 @@
private ServiceSelector accessControllerResolverSelector;
private AccessControllerResolver accessControllerResolver;
private DefaultAccessController accessController;
-
-
protected org.apache.lenya.cms.repository.Session login(String userId)
throws AccessControlException {
@@ -61,13 +59,14 @@
protected Session login(String userId, String pubId) throws AccessControlException {
Session session = new SessionImpl(null, true, getManager(), getLogger());
getRequest().setAttribute(Session.class.getName(), session);
-
+
DefaultAccessController ac = getAccessController(session, pubId);
AccreditableManager acMgr = ac.getAccreditableManager();
User user = acMgr.getUserManager().getUser(userId);
if (user == null) {
- throw new AccessControlException("The user [" + userId + "] does not exist!");
+ throw new AccessControlException("The user [" + userId
+ + "] does not exist in the accreditable manager [" + acMgr.getId() + "]!");
}
ac.setupIdentity(getRequest());
@@ -206,7 +205,7 @@
protected Publication getPublication(String id) throws PublicationException {
return getFactory().getPublication(id);
}
-
+
protected Identity getIdentity() {
return getSession().getIdentity();
}
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.