|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.multijava.util.testing.TestCase
org.multijava.mjc.TestJTypeDeclaration
Unit tests for JTypeDeclaration
| Field Summary | |
private ArrayList |
classes
|
private TestMjcParser |
parserHelper
|
| Fields inherited from class org.multijava.util.testing.TestCase |
NEWLINE |
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
TestJTypeDeclaration(String name)
|
|
| Method Summary | |
private JCompilationUnitType |
getCheckedAST(String sourceCode)
Returns a typechecked AST for the given source code string. |
private CMethodSet |
getGFsMethods(JCompilationUnitType unit)
Returns a set of the methods that will be used for generating the first external generic function in the given compilation unit. |
private CMethodSet |
getTypesMethods(JCompilationUnitType unit)
Returns a set of the methods that will be used for generating the first type declaration in the given compilation unit. |
private CMethodSet |
methodsFromSourceClass(CSourceClass clazz)
|
void |
setUp()
|
void |
tearDown()
|
void |
test_dispatcherWrapMethods_method1()
Test one internal method of local internal generic function using single dispatch. |
void |
test_dispatcherWrapMethods_method10()
Test two external methods of local external generic function using multiple dispatch. |
void |
test_dispatcherWrapMethods_method11()
Test two internal methods of local external generic function using multiple dispatch. |
void |
test_dispatcherWrapMethods_method12()
Test three external method of local external generic function using single dispatch. |
void |
test_dispatcherWrapMethods_method13()
Test three internal method of local internal generic function using multiple dispatch. |
void |
test_dispatcherWrapMethods_method14()
Test three internal method of non-local internal generic function using multiple dispatch. |
void |
test_dispatcherWrapMethods_method15()
Test three external methods of local external generic function using multiple dispatch. |
void |
test_dispatcherWrapMethods_method16()
Test three internal method of local external generic function using multiple dispatch. |
void |
test_dispatcherWrapMethods_method17()
Test pleomorphic method of internal and external generic function. |
void |
test_dispatcherWrapMethods_method18()
Test multiple pleomorphic method of internal and external generic function. |
void |
test_dispatcherWrapMethods_method2()
Test one internal method of non-local internal gf using single dispatch. |
void |
test_dispatcherWrapMethods_method3()
Test one external method of local external generic function using single dispatch. |
void |
test_dispatcherWrapMethods_method4()
Test one internal method of local external generic function using single dispatch. |
void |
test_dispatcherWrapMethods_method5()
Test one internal method of non-local internal gf using multiple dispatch. |
void |
test_dispatcherWrapMethods_method6()
Test one internal method of local external gf using multiple dispatch. |
void |
test_dispatcherWrapMethods_method7()
Test two external method of local external gf using single dispatch. |
void |
test_dispatcherWrapMethods_method8()
Test two internal method of local internal gf using multiple dispatch. |
void |
test_dispatcherWrapMethods_method9()
Test two internal method of non-local internal gf using multiple dispatch. |
private String |
warnings()
Returns the warnings generated by the must recent compilation attempt. |
| Methods inherited from class org.multijava.util.testing.TestCase |
assertDiff, assertEquals |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private ArrayList classes
private TestMjcParser parserHelper
| Constructor Detail |
public TestJTypeDeclaration(String name)
| Method Detail |
public void test_dispatcherWrapMethods_method1()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method2()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method3()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method4()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method5()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method6()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method7()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method8()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method9()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method10()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method11()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method12()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method13()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method14()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method15()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method16()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method17()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public void test_dispatcherWrapMethods_method18()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamExceptionprivate JCompilationUnitType getCheckedAST(String sourceCode)
private CMethodSet getTypesMethods(JCompilationUnitType unit)
unit - an typechecked and refactored AST for the
compilation unit private CMethodSet getGFsMethods(JCompilationUnitType unit)
unit - an typechecked and refactored AST for the
compilation unit private CMethodSet methodsFromSourceClass(CSourceClass clazz)
private String warnings()
public void setUp()
setUp in class junit.framework.TestCasepublic void tearDown()
tearDown in class junit.framework.TestCase
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||