|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.vub.at.AmbientTalkTest
edu.vub.at.objects.natives.LexicalRootTest
Nested Class Summary |
Nested classes inherited from class edu.vub.at.AmbientTalkTest |
AmbientTalkTest.Actorscript |
Field Summary | |
static AGSymbol |
atM_
|
static AGSymbol |
atN_
|
static AGSymbol |
atX_
|
private NATObject |
trait_
|
Fields inherited from class edu.vub.at.AmbientTalkTest |
ctx_ |
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary | |
LexicalRootTest()
|
Method Summary | |
static void |
main(java.lang.String[] args)
|
void |
setUp()
Initialize the trait used for testing import: def parent := object: { def n() { nil }; def m() { nil } } def trait := extend: parent with: { def x := 0; def m() { self } } |
void |
testBasicImport()
Tests whether a basic import of fields and methods from a 'trait' object into a 'host' object works properly. |
void |
testConflictingImport()
Tests whether conflicts are successfully detected. |
void |
testImportAndAliasing()
Tests whether aliasing works properly. |
void |
testImportAndAliasingAndExclusion()
Tests whether aliasing and exclusion work properly together. |
void |
testImportAndExclusion()
Tests whether exclusion works properly. |
void |
testLexicalRootFields()
|
void |
testTransitiveImport()
Tests whether traits can be transitively imported into objects. |
Methods inherited from class edu.vub.at.AmbientTalkTest |
actorTest, evalActor, evalAndCompareTo, evalAndCompareTo, evalAndReturn, evalAndTestException, evalInActor, evalSnippet, printedEquals |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private NATObject trait_
public static final AGSymbol atX_
public static final AGSymbol atM_
public static final AGSymbol atN_
Constructor Detail |
public LexicalRootTest()
Method Detail |
public static void main(java.lang.String[] args)
public void testLexicalRootFields()
public void setUp() throws java.lang.Exception
java.lang.Exception
public void testBasicImport() throws InterpreterException
InterpreterException
public void testConflictingImport() throws InterpreterException
InterpreterException
public void testTransitiveImport() throws InterpreterException
InterpreterException
public void testImportAndAliasing() throws InterpreterException
InterpreterException
public void testImportAndExclusion() throws InterpreterException
InterpreterException
public void testImportAndAliasingAndExclusion() throws InterpreterException
InterpreterException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |