mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-22 20:12:14 +00:00
Correct issue with unit test under Windows introduced with Linux fix.
This commit is contained in:
parent
46f17bed79
commit
bc285fce91
@ -30,6 +30,8 @@ import org.apache.commons.logging.LogFactory;
|
|||||||
|
|
||||||
import org.springframework.context.support.FileSystemXmlApplicationContext;
|
import org.springframework.context.support.FileSystemXmlApplicationContext;
|
||||||
|
|
||||||
|
import org.springframework.core.io.ResourceLoader;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
@ -234,7 +236,7 @@ public class CatalinaAcegiUserRealm extends RealmBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
FileSystemXmlApplicationContext ctx = new FileSystemXmlApplicationContext(
|
FileSystemXmlApplicationContext ctx = new FileSystemXmlApplicationContext(
|
||||||
"file://" + xml.getAbsolutePath());
|
"file:" + xml.getAbsolutePath());
|
||||||
Map beans = ctx.getBeansOfType(AuthenticationManager.class, true, true);
|
Map beans = ctx.getBeansOfType(AuthenticationManager.class, true, true);
|
||||||
|
|
||||||
if (beans.size() == 0) {
|
if (beans.size() == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user