dain 2005/06/21 14:49:46
Modified: modules/core/src/test/org/openejb/corba/compiler
PortableStubCompilerTest.java
Log:
Reenable broken test
Revision Changes Path
1.4 +25 -25
openejb/modules/core/src/test/org/openejb/corba/compiler/PortableStubCompilerTest.java
Index: PortableStubCompilerTest.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/test/org/openejb/corba/compiler/PortableStubCompilerTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PortableStubCompilerTest.java 21 Jun 2005 15:54:45 -0000 1.3
+++ PortableStubCompilerTest.java 21 Jun 2005 18:49:46 -0000 1.4
@@ -61,29 +61,29 @@
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();
-// genOptions.setClasspath("target/classes");
-// genOptions.setCompile(false);
-// genOptions.setGenSrcDir("target/stubs");
-// genOptions.setGenerate(true);
-// genOptions.setInterfaces(Arrays.asList(new String[]{
-// Simple.class.getName(),
-// Foo.class.getName(),
-// Special.class.getName(),
-// All.class.getName()
-// }));
-// genOptions.setLoadclass(true);
-// genOptions.setOverwrite(true);
-// genOptions.setSimpleIdl(false);
-// genOptions.setVerbose(true);
-//
-// ClassLoader classLoader = getClass().getClassLoader();
-// PortableStubCompiler stubCompiler = new
PortableStubCompiler(genOptions, classLoader);
-//
-// stubCompiler.generate();
-// }
+ public void testStubCompiler() throws Exception {
+ GenOptions genOptions = new GenOptions();
+ new File("target/stubs").mkdirs();
+ genOptions.setClasspath("target/classes");
+ genOptions.setCompile(false);
+ genOptions.setGenSrcDir("target/stubs");
+ genOptions.setGenerate(true);
+ genOptions.setInterfaces(Arrays.asList(new String[]{
+ Simple.class.getName(),
+ Foo.class.getName(),
+ Special.class.getName(),
+ All.class.getName()
+ }));
+ genOptions.setLoadclass(true);
+ genOptions.setOverwrite(true);
+ genOptions.setSimpleIdl(false);
+ genOptions.setVerbose(true);
+
+ ClassLoader classLoader = getClass().getClassLoader();
+ PortableStubCompiler stubCompiler = new
PortableStubCompiler(genOptions, classLoader);
+
+ stubCompiler.generate();
+ }
public void testBasicNameMangler() throws Exception {
Properties nameManglerProperties = new Properties();