edu.vub.at.actors.natives
Class ActorTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byedu.vub.at.AmbientTalkTest
              extended byedu.vub.at.actors.natives.ActorTest
All Implemented Interfaces:
junit.framework.Test

public class ActorTest
extends AmbientTalkTest

The Actorscript tests several aspects of actor creation, most notably actor creation, message sending and protocol installation.

Author:
tvcutsem

Nested Class Summary
 
Nested classes inherited from class edu.vub.at.AmbientTalkTest
AmbientTalkTest.Actorscript
 
Field Summary
 
Fields inherited from class edu.vub.at.AmbientTalkTest
ctx_
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ActorTest()
           
 
Method Summary
 void setUp()
           
 void testActorCreation()
          Tests whether an actor can be correctly created and whether it contains the appropriate initialized behaviour.
 void testActorMessageReception()
           
 void testProtocolInstallation()
           
 
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
 

Constructor Detail

ActorTest

public ActorTest()
Method Detail

setUp

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

testActorCreation

public void testActorCreation()
                       throws java.lang.Exception
Tests whether an actor can be correctly created and whether it contains the appropriate initialized behaviour.

Throws:
java.lang.Exception

testActorMessageReception

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

testProtocolInstallation

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