dlestrat 2004/03/10 21:04:15
Modified: components/security/src/test/org/apache/jetspeed/security
TestSecurityHelper.java TestRdbmsPolicy.java
Log:
Refactored for Pico.
Revision Changes Path
1.2 +18 -1
jakarta-jetspeed-2/components/security/src/test/org/apache/jetspeed/security/TestSecurityHelper.java
Index: TestSecurityHelper.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/components/security/src/test/org/apache/jetspeed/security/TestSecurityHelper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TestSecurityHelper.java 10 Mar 2004 06:09:25 -0000 1.1
+++ TestSecurityHelper.java 11 Mar 2004 05:04:15 -0000 1.2
@@ -45,6 +45,22 @@
}
/**
+ * @see junit.framework.TestCase#setUp()
+ */
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ /**
+ * @see junit.framework.TestCase#tearDown()
+ */
+ public void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ /**
* Creates the test suite.
*
* @return a test suite (<code>TestSuite</code>) that includes all methods
@@ -53,6 +69,7 @@
public static Test suite()
{
ComponentAwareTestSuite suite = new
ComponentAwareTestSuite(TestSecurityHelper.class);
+
suite.setScript("org/apache/jetspeed/security/containers/test.security.groovy");
return suite;
}
1.2 +0 -5
jakarta-jetspeed-2/components/security/src/test/org/apache/jetspeed/security/TestRdbmsPolicy.java
Index: TestRdbmsPolicy.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/components/security/src/test/org/apache/jetspeed/security/TestRdbmsPolicy.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TestRdbmsPolicy.java 10 Mar 2004 06:09:25 -0000 1.1
+++ TestRdbmsPolicy.java 11 Mar 2004 05:04:15 -0000 1.2
@@ -73,11 +73,6 @@
container = (MutablePicoContainer) getContainer();
ums = (UserManager) container.getComponentInstance(UserManager.class);
pms = (PermissionManager)
container.getComponentInstance(PermissionManager.class);
-
- // Insert custom provider here.
- Policy.setPolicy(new RdbmsPolicy());
- Policy.getPolicy().refresh();
-
initUser();
// Let's login in.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]