Tune tests, modify web sample, add more logging

- In web sample change other event C to K which brings
  machine back from S2 to S1.
- Add more logging.
- New test sending parallel events.
This commit is contained in:
Janne Valkealahti
2015-08-21 12:57:47 +01:00
parent ad3c082670
commit 99275380c3
6 changed files with 152 additions and 13 deletions

View File

@@ -108,7 +108,7 @@ public class StateMachineConfig {
.source(States.S1).target(States.S2).event(Events.C)
.and()
.withExternal()
.source(States.S2).target(States.S1).event(Events.C)
.source(States.S2).target(States.S1).event(Events.K)
.and()
.withExternal()
.source(States.S1).target(States.S0).event(Events.D)
@@ -201,7 +201,7 @@ public class StateMachineConfig {
}
public static enum Events {
A, B, C, D, E, F, G, H, I, J
A, B, C, D, E, F, G, H, I, J, K
}
private static class FooAction implements Action<States, Events> {

View File

@@ -33,6 +33,7 @@
<button ng-click="sendEvent('G')">event G</button>
<button ng-click="sendEvent('H')">event H</button>
<button ng-click="sendEvent('I')">event I</button>
<button ng-click="sendEvent('K')">event K</button>
</div>
</div>
<div class="row">