org.apache.commons.jci.compilers
Class AbstractCompilerTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.jci.compilers.AbstractCompilerTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
EclipseJavaCompilerTestCase, GroovyJavaCompilerTestCase, JaninoJavaCompilerTestCase, JavacJavaCompilerTestCase, RhinoJavaCompilerTestCase

public abstract class AbstractCompilerTestCase
extends junit.framework.TestCase

Providing convenience methods for JavaCompiler TestCases

Author:
tcurdt

Constructor Summary
AbstractCompilerTestCase()
           
 
Method Summary
abstract  JavaCompiler createJavaCompiler()
           
abstract  java.lang.String getCompilerName()
           
 void testCrossReferenceCompilation()
           
 void testExtendedCompile()
           
 void testFactoryCreation()
           
 void testInternalClassCompile()
           
 void testSimpleCompile()
           
 void testUppercasePackageNameCompile()
           
 java.lang.String toString(CompilationProblem[] pProblems)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractCompilerTestCase

public AbstractCompilerTestCase()
Method Detail

createJavaCompiler

public abstract JavaCompiler createJavaCompiler()

getCompilerName

public abstract java.lang.String getCompilerName()

testFactoryCreation

public void testFactoryCreation()

testSimpleCompile

public void testSimpleCompile()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testExtendedCompile

public void testExtendedCompile()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testInternalClassCompile

public void testInternalClassCompile()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testUppercasePackageNameCompile

public void testUppercasePackageNameCompile()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testCrossReferenceCompilation

public void testCrossReferenceCompilation()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

toString

public final java.lang.String toString(CompilationProblem[] pProblems)


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.