State machine refactor (#1520)

* State machine refactor

* Add surefire plugin

* Refactor
This commit is contained in:
Grzegorz Piwowarek
2017-03-28 08:17:00 +02:00
committed by GitHub
parent 0c8aa7e46d
commit 85969c69d2
16 changed files with 65 additions and 49 deletions

View File

@@ -1,17 +1,16 @@
package com.baeldung.spring.stateMachine;
package com.baeldung.spring.statemachine;
import org.junit.Assert;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.statemachine.StateMachine;
import com.baeldung.spring.stateMachine.config.JunctionStateMachineConfiguration;
public class JunctionStateMachineTest {
@Test
public void whenTransitioningToJunction_thenArriveAtSubJunctionNode() {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(JunctionStateMachineConfiguration.class);
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(com.baeldung.spring.statemachine.config.JunctionStateMachineConfiguration.class);
StateMachine stateMachine = ctx.getBean(StateMachine.class);
stateMachine.start();