[jboss-cvs] JBossAS SVN: r73562 - trunk/security/src/tests/org/jboss/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 21 13:42:30 EDT 2008
Author: scott.stark at jboss.org
Date: 2008-05-21 13:42:30 -0400 (Wed, 21 May 2008)
New Revision: 73562
Modified:
trunk/security/src/tests/org/jboss/test/LoginContextTestCase.java
trunk/security/src/tests/org/jboss/test/SunConfigParserTestCase.java
Log:
Change to XMLLoginConfigImpl.getInstance() since the ctor is now private
Modified: trunk/security/src/tests/org/jboss/test/LoginContextTestCase.java
===================================================================
--- trunk/security/src/tests/org/jboss/test/LoginContextTestCase.java 2008-05-21 17:40:42 UTC (rev 73561)
+++ trunk/security/src/tests/org/jboss/test/LoginContextTestCase.java 2008-05-21 17:42:30 UTC (rev 73562)
@@ -44,7 +44,7 @@
protected void setUp() throws Exception
{
System.setOut(System.err);
- XMLLoginConfigImpl config = new XMLLoginConfigImpl();
+ XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
config.setConfigResource("login-config.xml");
config.loadConfig();
Configuration.setConfiguration(config);
Modified: trunk/security/src/tests/org/jboss/test/SunConfigParserTestCase.java
===================================================================
--- trunk/security/src/tests/org/jboss/test/SunConfigParserTestCase.java 2008-05-21 17:40:42 UTC (rev 73561)
+++ trunk/security/src/tests/org/jboss/test/SunConfigParserTestCase.java 2008-05-21 17:42:30 UTC (rev 73562)
@@ -50,7 +50,7 @@
*/
public void testParser() throws Exception
{
- XMLLoginConfigImpl config = new XMLLoginConfigImpl();
+ XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
ClassLoader loader = Thread.currentThread().getContextClassLoader();
URL configURL = loader.getResource("login-config.conf");
InputStreamReader configFile = new InputStreamReader(configURL.openStream());
@@ -92,7 +92,7 @@
*/
public void testSunLoginConfig() throws Exception
{
- XMLLoginConfigImpl config = new XMLLoginConfigImpl();
+ XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
ClassLoader loader = Thread.currentThread().getContextClassLoader();
URL configURL = loader.getResource("login-config.conf");
config.setConfigURL(configURL);
More information about the jboss-cvs-commits
mailing list