Altered makeAdapter to use conext classloader getResource() to load files instead of ClassLoader.getSystemResource. Fixes tests when run under Maven.

This commit is contained in:
Luke Taylor 2004-06-24 19:50:58 +00:00
parent 73bd6c2f6f
commit 123ad907d1
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ public class CatalinaAcegiUserRealmTests extends TestCase {
throws Exception {
CatalinaAcegiUserRealm adapter = new CatalinaAcegiUserRealm();
URL url = ClassLoader.getSystemResource(
URL url = Thread.currentThread().getContextClassLoader().getResource(
"net/sf/acegisecurity/adapters/" + fileName);
if (url == null) {