[DS-8419] JavaDoc on Matcher

This commit is contained in:
Vincenzo Mecca
2022-07-25 10:59:48 +02:00
parent 060727ba14
commit 949796b288

View File

@@ -63,6 +63,14 @@ public class WorkflowDefinitionMatcher {
);
}
/**
* Verifies that the content of the `json` matches
* the detail of the steps
* Actually we can checks only the identifier to assure they are the same.
*
* @param step target step of the workflow
* @return Matcher
*/
public static Matcher<? super Object> matchStep(Step step) {
return allOf(
hasJsonPath("$.id", is(step.getId()))