FileDocCategorySizeDatePackage
RmicAdvancedTest.javaAPI DocApache Ant 1.706916Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs

RmicAdvancedTest

public class RmicAdvancedTest extends org.apache.tools.ant.BuildFileTest
Date: 04-Aug-2004 Time: 22:15:46

Fields Summary
private static final String
TASKDEFS_DIR
Constructors Summary
public RmicAdvancedTest(String name)

        super(name);
    
Methods Summary
public voidNotestFailingAdapter()

        expectBuildExceptionContaining("testFailingAdapter",
                "expected failures to propagate",
                Rmic.ERROR_RMIC_FAILED);
    
public voidNotestForking()
test the forking compiler

        executeTarget("testForking");
    
public voidsetUp()
The JUnit setup method


             
         
        super.setUp();
        configureProject(TASKDEFS_DIR + "rmic.xml");
    
public voidtearDown()
The teardown method for JUnit

        executeTarget("teardown");
    
public voidtestAntClasspath()
test the forking compiler

        executeTarget("testAntClasspath");
    
public voidtestBadName()
A unit test for JUnit

        expectBuildExceptionContaining("testBadName",
                "compiler not known",
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
    
public voidtestDefault()
verify that "default" binds us to the default compiler

        executeTarget("testDefault");
    
public voidtestDefaultBadClass()
A unit test for JUnit

        expectBuildExceptionContaining("testDefaultBadClass",
                "expected the class to fail",
                Rmic.ERROR_RMIC_FAILED);
        //dont look for much text here as it is vendor and version dependent
        assertLogContaining("unimplemented.class");
    
public voidtestEmpty()
verify that "" binds us to the default compiler

        executeTarget("testEmpty");
    
public voidtestExplicitClass()
load an adapter by name

        executeTarget("testExplicitClass");
    
public voidtestForkingAntClasspath()
test the forking compiler

        executeTarget("testForkingAntClasspath");
    
public voidtestIDL()
test that verifies that IDL compiles.

throws
Exception

        executeTarget("testIDL");
    
public voidtestIIOP()
test that verifies that IIOP compiles.

throws
Exception

        executeTarget("testIIOP");
    
public voidtestKaffe()
A unit test for JUnit

        executeTarget("testKaffe");
    
public voidtestMagicProperty()
A unit test for JUnit

        expectBuildExceptionContaining("testMagicProperty",
                "magic property not working",
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
    
public voidtestMagicPropertyIsEmptyString()

        executeTarget("testMagicPropertyIsEmptyString");
    
public voidtestMagicPropertyOverridesEmptyString()
A unit test for JUnit

        expectBuildExceptionContaining("testMagicPropertyOverridesEmptyString",
                "magic property not working",
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
    
public voidtestRmic()
A unit test for JUnit

        executeTarget("testRmic");
    
public voidtestVersion11()
test that version 1.1 stubs are good

throws
Exception

        executeTarget("testVersion11");
    
public voidtestVersion12()
test that version 1.2 stubs are good

throws
Exception

        executeTarget("testVersion12");
    
public voidtestVersionCompat()
test that version compat stubs are good

throws
Exception

        executeTarget("testVersionCompat");
    
public voidtestWlrmic()
A unit test for JUnit

        executeTarget("testWlrmic");
    
public voidtestWrongClass()
A unit test for JUnit

        expectBuildExceptionContaining("testWrongClass",
                "class not an RMIC adapter",
                RmicAdapterFactory.ERROR_NOT_RMIC_ADAPTER);
    
public voidtestXnew()
test that passes -Xnew to sun's rmic.

throws
Exception

        executeTarget("testXnew");
    
public voidtestXnewCompiler()
test that runs the new xnew compiler adapter.

throws
Exception

        executeTarget("testXnewCompiler");
    
public voidtestXnewForked()
test that passes -Xnew to sun's rmic running in a different VM.

throws
Exception

        executeTarget("testXnewForked");