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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user