Add hamcrest integration to variables in StateMachineTestPlanBuilder

- For testing extended state variables, it's now possible to use
  new method expectVariableWith which takes hamcrest matcher
  as an argument.
- Backport #483
This commit is contained in:
jvalkeal
2018-01-27 14:30:54 +00:00
parent a988410ab5
commit 30f48ecd54
5 changed files with 146 additions and 16 deletions

View File

@@ -2066,6 +2066,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