geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r191562 - /geronimo/trunk/modules/interop/src/test/org/apache/geronimo/interop/rmi/iiop/portable/PortableStubCompilerTest.java
Date Mon, 20 Jun 2005 21:12:52 GMT
Author: djencks
Date: Mon Jun 20 14:12:51 2005
New Revision: 191562

URL: http://svn.apache.org/viewcvs?rev=191562&view=rev
Log:
fix so test works in main build

Modified:
    geronimo/trunk/modules/interop/src/test/org/apache/geronimo/interop/rmi/iiop/portable/PortableStubCompilerTest.java

Modified: geronimo/trunk/modules/interop/src/test/org/apache/geronimo/interop/rmi/iiop/portable/PortableStubCompilerTest.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/interop/src/test/org/apache/geronimo/interop/rmi/iiop/portable/PortableStubCompilerTest.java?rev=191562&r1=191561&r2=191562&view=diff
==============================================================================
--- geronimo/trunk/modules/interop/src/test/org/apache/geronimo/interop/rmi/iiop/portable/PortableStubCompilerTest.java
(original)
+++ geronimo/trunk/modules/interop/src/test/org/apache/geronimo/interop/rmi/iiop/portable/PortableStubCompilerTest.java
Mon Jun 20 14:12:51 2005
@@ -31,6 +31,9 @@
  * @version $Rev$ $Date$
  */
 public class PortableStubCompilerTest extends TestCase {
+    private static final File basedir = new File(System.getProperty("basedir", System.getProperty("user.dir")));
+
+
     public void testStubCompiler() throws Exception {
         GenOptions genOptions = new GenOptions();
         new File("target/stubs").mkdirs();
@@ -52,7 +55,8 @@
 
     public void testBasicNameMangler() throws Exception {
         Properties nameManglerProperties = new Properties();
-        nameManglerProperties.load(new FileInputStream("src/test-data/nameMangler.properties"));
+        File file = new File(basedir, "src/test-data/nameMangler.properties");
+        nameManglerProperties.load(new FileInputStream(file));
 
         Set methodSignatures = new HashSet();
         IiopOperation[] iiopOperations = PortableStubCompiler.createIiopOperations(Foo.class);
@@ -83,7 +87,8 @@
 
     public void testSpecialNameMangler() throws Exception {
         Properties nameManglerProperties = new Properties();
-        nameManglerProperties.load(new FileInputStream("src/test-data/specialNameMangler.properties"));
+        File file = new File(basedir, "src/test-data/specialNameMangler.properties");
+        nameManglerProperties.load(new FileInputStream(file));
 
         Set methodSignatures = new HashSet();
         IiopOperation[] iiopOperations = PortableStubCompiler.createIiopOperations(Special.class);



Mime
View raw message