Author: anil.saldhana(a)jboss.com
Date: 2010-12-09 15:11:59 -0500 (Thu, 09 Dec 2010)
New Revision: 589
Modified:
federation/trunk/picketlink-web/src/test/java/org/picketlink/test/identity/federation/web/mock/MockContextClassLoader.java
Log:
check our classpath first
Modified:
federation/trunk/picketlink-web/src/test/java/org/picketlink/test/identity/federation/web/mock/MockContextClassLoader.java
===================================================================
---
federation/trunk/picketlink-web/src/test/java/org/picketlink/test/identity/federation/web/mock/MockContextClassLoader.java 2010-12-09
20:11:29 UTC (rev 588)
+++
federation/trunk/picketlink-web/src/test/java/org/picketlink/test/identity/federation/web/mock/MockContextClassLoader.java 2010-12-09
20:11:59 UTC (rev 589)
@@ -55,7 +55,10 @@
public InputStream getResourceAsStream(String name)
{
if(profile == null)
- throw new RuntimeException("null profile");
- return delegate.getResourceAsStream(profile + "/" + name);
+ throw new RuntimeException("null profile");
+ InputStream is = super.getResourceAsStream(name);
+ if( is == null )
+ is = delegate.getResourceAsStream(profile + "/" + name);
+ return is;
}
}
\ No newline at end of file
Show replies by date