|
|||||||||||
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.AmbientTalkTestCase
edu.vub.at.objects.mirrors.ReflectiveAccessTest
ReflectiveAccessTest is a superclass to a framework of test cases geared towards exploiting the reflective machinery provided in the mirrors package to explore whether the mechanism works correctly and therefore allows one to access and invoke java fields and methods from within AmbientTalk (both at the base and meta-level) and to access and invoke Ambienttalk fields and methods through the mediation of Mirages. This file establishes a common vocabulary for these idiosyncratic tests and allows code reuse for commonly used features.
Field Summary | |
protected ATTable |
closures
|
protected NATClosure |
echo_
|
protected NATClosure |
fail
|
protected ATBoolean |
False
|
protected ATObject |
lexicalRoot
|
protected NATClosure |
success
|
protected NATClosure |
symbol
|
protected ATBoolean |
True
|
Fields inherited from class edu.vub.at.AmbientTalkTestCase |
ctx_, unittest_ |
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary | |
ReflectiveAccessTest()
|
Method Summary | |
protected void |
evaluateInput(java.lang.String input,
ATContext ctx)
|
protected void |
setUp()
Initializes the lexical root for the purpose of this test. |
Methods inherited from class edu.vub.at.AmbientTalkTestCase |
tearDown |
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 |
protected final NATClosure fail
protected final NATClosure success
protected final NATClosure symbol
protected final NATClosure echo_
protected final ATBoolean True
protected final ATBoolean False
protected ATObject lexicalRoot
protected ATTable closures
Constructor Detail |
public ReflectiveAccessTest()
Method Detail |
protected void evaluateInput(java.lang.String input, ATContext ctx) throws InterpreterException
evaluateInput
in class AmbientTalkTestCase
InterpreterException
protected void setUp() throws java.lang.Exception
setUp
in class AmbientTalkTestCase
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |