dain 2005/06/22 20:56:43
Modified: modules/core/src/test/org/openejb/corba/compiler
PortableStubCompilerTest.java
Log:
Removed PortableStubGenerator since it is totally broken. We now use
DynamicStubClassLoader instead.
Added StubDelegate to handle assigning ClientDelegate objects to new stubs
Removed ClienContextHolder since it is no longer used
Fixed several marshalling errors in the StubMethodInterceptor
Revision Changes Path
1.5 +2 -28
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.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- PortableStubCompilerTest.java 21 Jun 2005 18:49:46 -0000 1.4
+++ PortableStubCompilerTest.java 23 Jun 2005 00:56:43 -0000 1.5
@@ -47,43 +47,17 @@
import java.io.File;
import java.io.FileInputStream;
import java.lang.reflect.Method;
-import java.util.Arrays;
import java.util.HashSet;
import java.util.Properties;
import java.util.Set;
import junit.framework.TestCase;
-import org.apache.geronimo.interop.generator.GenOptions;
/**
* @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();
- 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();