Add hamcrest integration to variables in StateMachineTestPlanBuilder

- For testing extended state variables, it's now possible to use
  new method expectVariableMatcher which takes hamcrest matcher
  as an argument.
- Fixes #483
This commit is contained in:
jvalkeal
2018-01-27 14:30:54 +00:00
parent fd63d9118b
commit 7f78deadcc
5 changed files with 138 additions and 10 deletions

View File

@@ -2064,6 +2064,13 @@ state machine features and multiple machines can be added to a plan.
If multiple machines are added then it is also possible to choose if
event is sent to particular, random or all machines.
Above testing example uses hamcrest imports:
[source,java,indent=0]
----
include::samples/DocsTestSampleTests.java[tags=snippetC]
----
[TIP]
====
All possible options for expected are documented in javadocs