@@ -0,0 +1,1231 @@
+package in.halter.template.fsm.impl;%0A%0Aimport in.halter.template.fsm.api.PowerOff;%0Aimport in.halter.template.fsm.api.PowerOn;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport akka.actor.ActorRef;%0Aimport akka.actor.ActorSystem;%0Aimport akka.actor.Props;%0Aimport akka.testkit.TestKit;%0A%0A/**%0A * Testclass for SimpleFSMJ%0A * @author Roebi%0A *%0A */%0Apublic class SimpleFSMJTest %7B%0A%0A%09/**%0A%09 * @throws java.lang.Exception%0A%09 */%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%7D%0A%0A%09/**%0A%09 * @throws java.lang.Exception%0A%09 */%0A%09@After%0A%09public void tearDown() throws Exception %7B%0A%09%7D%0A%0A%09@Test%0A%09public void test() %7B%0A%09%09ActorSystem system = ActorSystem.create(%22simpleFSMTest%22);%0A%09%09try %7B%0A%09%09%09new TestKit(system) %7B%0A%09%09%09%09%7B%0A%09%09%09%09%09ActorRef simpleFSM = system.actorOf(Props.create(SimpleFSMJ.class));%0A%09%09%09%09%09simpleFSM.tell(%0A%09%09%09%09%09%09%09new PowerOn(),%0A%09%09%09%09%09%09%09testActor()); %0A%09%09%09%09%09expectMsg(OnState.On);%0A%09%09%09%09%09simpleFSM.tell(%0A%09%09%09%09%09%09%09new PowerOff(),%0A%09%09%09%09%09%09%09testActor()); %0A%09%09%09%09%09expectMsg(OffState.Off);%0A%09%09%09%09%09simpleFSM.tell(%0A%09%09%09%09%09%09%09new PowerOn(),%0A%09%09%09%09%09%09%09testActor()); %0A%09%09%09%09%09expectMsg(OnState.On);%0A%09%09%09%09%09simpleFSM.tell(%0A%09%09%09%09%09%09%09new PowerOff(),%0A%09%09%09%09%09%09%09testActor()); %0A%09%09%09%09%09expectMsg(OffState.Off);%0A%09%09%09%09%7D%0A%09%09%09%7D;%0A%09%09%7D finally %7B%0A%09%09%09system.terminate();%0A%09%09%7D;%0A%09%7D%0A%7D%0A

add Java Test Sources.