Author: heiko.braun(a)jboss.com
Date: 2008-05-07 11:49:26 -0400 (Wed, 07 May 2008)
New Revision: 6942
Modified:
common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTest.java
Log:
Added createResourceFile()
Modified: common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTest.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTest.java 2008-05-07 15:10:31 UTC
(rev 6941)
+++ common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTest.java 2008-05-07 15:49:26 UTC
(rev 6942)
@@ -136,6 +136,19 @@
return delegate.getResourceFile(resource);
}
+ public static File createResourceFile(String filename)
+ {
+ File resDir = new File(JBossWSTestHelper.getTestResourcesDir());
+ File file = new File( resDir.getAbsolutePath() + File.separator + filename);
+ return file;
+ }
+
+ public static File createResourceFile(File parent, String filename)
+ {
+ File file = new File( parent, filename);
+ return file;
+ }
+
public URL getResourceURL(String resource) throws MalformedURLException
{
return delegate.getResourceFile(resource).toURL();
Show replies by date