[jboss-cvs] JBossAS SVN: r73560 - in trunk/testsuite/src/main/org/jboss/test: web/security and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 21 13:08:34 EDT 2008
Author: sguilhen at redhat.com
Date: 2008-05-21 13:08:34 -0400 (Wed, 21 May 2008)
New Revision: 73560
Modified:
trunk/testsuite/src/main/org/jboss/test/jacc/test/CallerInRoleUnitTestCase.java
trunk/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java
trunk/testsuite/src/main/org/jboss/test/web/security/JASPISecurityFilter.java
Log:
Fixed the tests that create a XMLLoginConfigImpl to use the singleton getInstance() method instead.
Modified: trunk/testsuite/src/main/org/jboss/test/jacc/test/CallerInRoleUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jacc/test/CallerInRoleUnitTestCase.java 2008-05-21 16:35:10 UTC (rev 73559)
+++ trunk/testsuite/src/main/org/jboss/test/jacc/test/CallerInRoleUnitTestCase.java 2008-05-21 17:08:34 UTC (rev 73560)
@@ -95,7 +95,7 @@
protected void setUp() throws Exception
{
super.setUp();
- Configuration.setConfiguration(new XMLLoginConfigImpl());
+ Configuration.setConfiguration(XMLLoginConfigImpl.getInstance());
redeploy("security-jacc-callerinrole.jar");
}
protected void tearDown() throws Exception
Modified: trunk/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java 2008-05-21 16:35:10 UTC (rev 73559)
+++ trunk/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java 2008-05-21 17:08:34 UTC (rev 73560)
@@ -94,7 +94,7 @@
protected void setUp() throws Exception
{
super.setUp();
- Configuration.setConfiguration(new XMLLoginConfigImpl());
+ Configuration.setConfiguration(XMLLoginConfigImpl.getInstance());
redeploy("security-spec.jar");
flushAuthCache();
}
Modified: trunk/testsuite/src/main/org/jboss/test/web/security/JASPISecurityFilter.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/web/security/JASPISecurityFilter.java 2008-05-21 16:35:10 UTC (rev 73559)
+++ trunk/testsuite/src/main/org/jboss/test/web/security/JASPISecurityFilter.java 2008-05-21 17:08:34 UTC (rev 73560)
@@ -155,7 +155,7 @@
private void generateConfiguration() throws IOException
{
// Install the custom JAAS configuration
- XMLLoginConfigImpl config = new XMLLoginConfigImpl();
+ XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
config.setConfigResource(configFile);
config.loadConfig();
}
More information about the jboss-cvs-commits
mailing list