[jbpm-commits] JBoss JBPM SVN: r2312 - projects/jbpm-spec/trunk/modules/api/src/main/java/org/jboss/bpm/test.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Sep 23 08:46:06 EDT 2008


Author: thomas.diesler at jboss.com
Date: 2008-09-23 08:46:06 -0400 (Tue, 23 Sep 2008)
New Revision: 2312

Modified:
   projects/jbpm-spec/trunk/modules/api/src/main/java/org/jboss/bpm/test/IntegrationTestCase.java
Log:
Add file access to integration test case

Modified: projects/jbpm-spec/trunk/modules/api/src/main/java/org/jboss/bpm/test/IntegrationTestCase.java
===================================================================
--- projects/jbpm-spec/trunk/modules/api/src/main/java/org/jboss/bpm/test/IntegrationTestCase.java	2008-09-23 12:40:07 UTC (rev 2311)
+++ projects/jbpm-spec/trunk/modules/api/src/main/java/org/jboss/bpm/test/IntegrationTestCase.java	2008-09-23 12:46:06 UTC (rev 2312)
@@ -23,20 +23,26 @@
 
 // $Id$
 
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+
 import junit.framework.TestCase;
 
 public abstract class IntegrationTestCase extends TestCase
 {
   private IntegrationTestHelper delegate = new IntegrationTestHelper();
-  
-  /** Deploy the given archive
+
+  /**
+   * Deploy the given archive
    */
   public void deploy(String archive) throws Exception
   {
     delegate.deploy(archive);
   }
 
-  /** Undeploy the given archive
+  /**
+   * Undeploy the given archive
    */
   public void undeploy(String archive) throws Exception
   {
@@ -57,4 +63,36 @@
   {
     return delegate.isTargetJBoss422();
   }
+
+  /** 
+   * Discover the URL for the deployment archive 
+   */
+  public URL getArchiveURL(String archive) throws MalformedURLException
+  {
+    return delegate.getArchiveURL(archive);
+  }
+
+  /** 
+   * Discover the File for the deployment archive 
+   */
+  public File getArchiveFile(String archive)
+  {
+    return delegate.getArchiveFile(archive);
+  }
+
+  /** 
+   * Discover the URL for the test resource 
+   */
+  public URL getResourceURL(String resource) throws MalformedURLException
+  {
+    return delegate.getResourceURL(resource);
+  }
+
+  /** 
+   * Discover the File for the test resource 
+   */
+  public File getResourceFile(String resource)
+  {
+    return delegate.getResourceFile(resource);
+  }
 }




More information about the jbpm-commits mailing list