Author: michiel
Date: 2009-06-03 08:15:37 +0200 (Wed, 03 Jun 2009)
New Revision: 35595
Modified:
mmbase/trunk/tests/cloudcontext/org/mmbase/security/implementation/cloudcontext/CloudContext.java
Log:
Modified:
mmbase/trunk/tests/cloudcontext/org/mmbase/security/implementation/cloudcontext/CloudContext.java
===================================================================
---
mmbase/trunk/tests/cloudcontext/org/mmbase/security/implementation/cloudcontext/CloudContext.java
2009-06-03 06:11:21 UTC (rev 35594)
+++
mmbase/trunk/tests/cloudcontext/org/mmbase/security/implementation/cloudcontext/CloudContext.java
2009-06-03 06:15:37 UTC (rev 35595)
@@ -40,6 +40,9 @@
public void testImplementation() {
+ assertNotNull(getCloud());
+ assertNotNull(getCloud().getCloudContext());
+ assertNotNull(getCloud().getCloudContext().getAuthentication());
assertEquals(org.mmbase.security.implementation.cloudcontext.Authenticate.class,
getCloud().getCloudContext().getAuthentication().getClass());
Cloud cloud = getCloud("foo");
@@ -69,7 +72,7 @@
Node context =
cloud.getNodeManager("mmbasecontexts").getList(null).get(0);
Node news = cloud.getNodeManager("news").getList(null).get(0);
assertFalse(context.mayWrite());
- assertTrue(news.mayWrite());
+ assertTrue("May not write noded " + news.getNumber() + " with context
" + news.getContext(), news.mayWrite());
try {
context.setStringValue("name", "bla bla");
fail("Should not have been allowed to write in an mmbasecontext
node");
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs