@@ -0,0 +1,1735 @@
+package machine3.j.tests;%0A%0Aimport static hu.elte.txtuml.api.model.seqdiag.Sequence.fromActor;%0Aimport static hu.elte.txtuml.api.model.seqdiag.Sequence.send;%0A%0Aimport hu.elte.txtuml.api.model.Action;%0Aimport hu.elte.txtuml.api.model.seqdiag.ExecMode;%0Aimport hu.elte.txtuml.api.model.seqdiag.ExecutionMode;%0Aimport hu.elte.txtuml.api.model.seqdiag.Position;%0A//import static hu.elte.txtuml.api.model.seqdiag.Sequence.assertState;%0Aimport hu.elte.txtuml.api.model.seqdiag.SequenceDiagram;%0Aimport machine3.j.model.Machine;%0Aimport machine3.j.model.User;%0Aimport machine3.j.model.associations.Usage;%0Aimport machine3.j.model.signals.ButtonPress;%0Aimport machine3.j.model.signals.DoTasks;%0Aimport machine3.j.model.signals.DoYourWork;%0A%0Apublic class Machine3SequenceDiagram extends SequenceDiagram %7B%0A%0A%09@Position(2)%0A%09Machine m;%0A%0A%09@Position(1)%0A%09User u1;%0A%0A%09User u2;%0A%0A%09@Override%0A%09public void initialize() %7B%0A%09%09m = Action.create(Machine.class, 3);%0A%09%09u1 = Action.create(User.class);%0A%09%09u2 = Action.create(User.class);%0A%0A%09%09u1.name = %22user1%22;%0A%09%09u2.name = %22user2%22;%0A%09%09u1.id = 1;%0A%09%09u2.id = 2;%0A%0A%09%09Action.link(Usage.usedMachine.class, m, Usage.userOfMachine.class, u1);%0A%09%09Action.link(Usage.usedMachine.class, m, Usage.userOfMachine.class, u2);%0A%0A%09%09Action.log(%22Machine and users are starting.%22);%0A%09%09Action.start(m);%0A%09%09Action.start(u1);%0A%09%09Action.start(u2);%0A%0A%09%09Action.log(%22One of the users is starting to do his or her work.%22);%0A%09%7D%0A%0A%09@Override%0A%09@ExecutionMode(ExecMode.LENIENT)%0A%09public void run() %7B%0A%09%09fromActor(new DoYourWork(), u1);%0A//%09%09assertState(u1, NotWorking.class);%0A//%09%09assertState(m, Off.class);%0A%0A%09%09send(u1, new ButtonPress(), m);%0A%09%09send(u1, new DoTasks(4), m);%0A//%09%09assertState(m, On.Active.class);%0A%09%09%0A%09%09// proposal%0A//%09%09send(new ButtonPress(), m);%09// from Timer%0A%09%7D%0A%0A%7D%0A

Add machine3 example test