Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Adapt README to new API #34
Browse files Browse the repository at this point in the history
  • Loading branch information
tdauth authored and rebazer committed May 21, 2019
1 parent 15e43e7 commit e81e76b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ import de.retest.recheck.ui.descriptors.SutState
import de.retest.surili.commons.actions.NavigateToAction

val stateMachine = GuiStateMachineApi().createStateMachine("test")
val currentState = new SutState(currentDescriptors)
val currentSutState = new SutState(currentDescriptors)
val currentState = stateMachine.createState(currentSutState, 1)
val action = new NavigateToAction("http://google.com")
val nextState = new SutState(nextDescriptors)
val nextSutState = new SutState(nextDescriptors)
val nextState = stateMachine.createState(nextSutState, 1)
stateMachine.executeAction(currentState, action, nextState)

GuiStateMachineSerializer.javaObjectStream(stateMachine).save("mystatemachine.ser")
Expand Down

0 comments on commit e81e76b

Please sign in to comment.