[jboss-cvs] JBossAS SVN: r70601 - projects/security/security-jboss-sx/trunk/acl/src/tests/java/org/jboss/test/security/acl.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Mar 9 18:23:42 EDT 2008
Author: anil.saldhana at jboss.com
Date: 2008-03-09 18:23:42 -0400 (Sun, 09 Mar 2008)
New Revision: 70601
Modified:
projects/security/security-jboss-sx/trunk/acl/src/tests/java/org/jboss/test/security/acl/ACLUseTestCase.java
Log:
get the number of resources via system property - default it to 100
Modified: projects/security/security-jboss-sx/trunk/acl/src/tests/java/org/jboss/test/security/acl/ACLUseTestCase.java
===================================================================
--- projects/security/security-jboss-sx/trunk/acl/src/tests/java/org/jboss/test/security/acl/ACLUseTestCase.java 2008-03-09 22:17:29 UTC (rev 70600)
+++ projects/security/security-jboss-sx/trunk/acl/src/tests/java/org/jboss/test/security/acl/ACLUseTestCase.java 2008-03-09 22:23:42 UTC (rev 70601)
@@ -51,7 +51,7 @@
*/
public class ACLUseTestCase extends TestCase
{
- private static final int TOTAL_RESOURCES = 5000;
+ private static int TOTAL_RESOURCES = 5000;
private static final int TOTAL_IDENTITIES = 50;
@@ -68,6 +68,10 @@
@Override
protected void setUp() throws Exception
{
+ //Get it as a system property to the test (eg. maven profiles)
+ String resourcesCount = System.getProperty("acl.resources","100");
+ TOTAL_RESOURCES = Integer.parseInt(resourcesCount);
+
this.strategy = new JPAPersistenceStrategy();
this.registration = new TestACLRegistration(strategy);
this.provider = new ACLProviderImpl();
More information about the jboss-cvs-commits
mailing list