| xtc.lang.JavaUnitTests
JavaUnitTests | final public class JavaUnitTests extends TestCase (Code) | | JUnit tests for Java-related classes in package xtc.lang.
This class is a good place to quickly try a method on some simple
inputs. The test cases also document how to use certain API and
what it does.
To run from the console, set your CLASSPATH to include
$JAVA_DEV_ROOT/classes and junit.jar, then run
java -ea junit.textui.TestRunner xtc.lang.JavaUnitTests
Or, to run from within eclipse, Run -> Run ... -> JUnit -> New, and
specify xtc.lang.JavaUnitTests.
author: Martin Hirzel version: $Revision: 1.36 $ |
Inner Class :abstract public static class IgnorableTest extends TestCase | |
Inner Class :static class JavaAnalyzerTestConstant extends IgnorableTest | |
Inner Class :static class JavaAnalyzerTestError extends IgnorableTest | |
Inner Class :static class JavaExternalAnalyzerTest extends IgnorableTest | |
Inner Class :static class JavaParserTest extends IgnorableTest | |
Inner Class :static class TempFile | |
Inner Class :public static class WriterOutputStream extends OutputStream | |
Method Summary | |
public static String | cAstToString(Node ast) | public static GNode | cStringToAst(String production, String string, Set<String> typedefs) | public static String | contractSpace(String string) | static File | createTempFile(File tempDir, String path, String contents) | public static void | dumpSymbolTable(SymbolTable table) | public static void | enterPackageFile(SymbolTable table, String packageName, String fileName) | static void | javaAnalyzerTestConstant(String expression, Object expected, JavaAnalyzer ana) | static void | javaAnalyzerTestError(String production, String input, String expected) | static void | javaParserTestRoundTrip(String production, String input, String expected, boolean simple) | static JavaExternalAnalyzer | newJavaExternalAnalyzer() | public static Runtime | newRuntime() | public static String | stripPrefix(String s, String prefix) | public static String | stripSuffix(String s, String suffix) | public static Test | suite() | final public void | testAssertEnabled() To enable assertions in eclipse, go to Run -> Run... | final public void | testCParser_pTranslationUnit() | final public void | testJavaAnalyzer_visitAssignmentExpression() | final public void | testJavaAnalyzer_visitCallExpression() | final public strictfp void | testJavaAnalyzer_visitConstantExpression() | final public void | testJavaAnalyzer_visitExpression() | final public void | testJavaAnalyzer_visitPrimaryIdentifier() | final public void | testJavaAnalyzer_visitSelectionExpression() | final public void | testJavaAnalyzer_visitSubscriptExpression() | final public void | testJavaEntities_nestingClassification() | final public void | testJavaExternalAnalyzer_visitCompilationUnit() | final public void | testJavaExternalAnalyzer_visitImportDeclaration() |
IGNORE_MEANS_SKIP | final public static boolean IGNORE_MEANS_SKIP(Code) | | |
suite | public static Test suite()(Code) | | |
testAssertEnabled | final public void testAssertEnabled()(Code) | | To enable assertions in eclipse, go to Run -> Run... -> Arguments, and in
the box labeled VM arguments, enter -enableassertions.
|
testCParser_pTranslationUnit | final public void testCParser_pTranslationUnit() throws Exception(Code) | | |
testJavaAnalyzer_visitAssignmentExpression | final public void testJavaAnalyzer_visitAssignmentExpression() throws Exception(Code) | | |
testJavaAnalyzer_visitCallExpression | final public void testJavaAnalyzer_visitCallExpression() throws Exception(Code) | | |
testJavaAnalyzer_visitConstantExpression | final public strictfp void testJavaAnalyzer_visitConstantExpression() throws Exception(Code) | | |
testJavaAnalyzer_visitExpression | final public void testJavaAnalyzer_visitExpression() throws Exception(Code) | | |
testJavaAnalyzer_visitPrimaryIdentifier | final public void testJavaAnalyzer_visitPrimaryIdentifier() throws Exception(Code) | | |
testJavaAnalyzer_visitSelectionExpression | final public void testJavaAnalyzer_visitSelectionExpression() throws Exception(Code) | | |
testJavaAnalyzer_visitSubscriptExpression | final public void testJavaAnalyzer_visitSubscriptExpression() throws Exception(Code) | | |
testJavaEntities_nestingClassification | final public void testJavaEntities_nestingClassification() throws Exception(Code) | | |
testJavaExternalAnalyzer_visitCompilationUnit | final public void testJavaExternalAnalyzer_visitCompilationUnit() throws Exception(Code) | | |
testJavaExternalAnalyzer_visitImportDeclaration | final public void testJavaExternalAnalyzer_visitImportDeclaration() throws Exception(Code) | | |
|
|