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:
parent
73bd6c2f6f
commit
123ad907d1
|
@ -261,7 +261,7 @@ public class CatalinaAcegiUserRealmTests extends TestCase {
|
||||||
throws Exception {
|
throws Exception {
|
||||||
CatalinaAcegiUserRealm adapter = new CatalinaAcegiUserRealm();
|
CatalinaAcegiUserRealm adapter = new CatalinaAcegiUserRealm();
|
||||||
|
|
||||||
URL url = ClassLoader.getSystemResource(
|
URL url = Thread.currentThread().getContextClassLoader().getResource(
|
||||||
"net/sf/acegisecurity/adapters/" + fileName);
|
"net/sf/acegisecurity/adapters/" + fileName);
|
||||||
|
|
||||||
if (url == null) {
|
if (url == null) {
|
||||||
|
|
Loading…
Reference in New Issue