File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
impl/http/src/test/java/io/serverlessworkflow/impl Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,16 @@ void testWrongSchema(String fileName) {
6262 .hasMessageContaining ("There are JsonSchema validation errors" );
6363 }
6464
65+ private static boolean httpCondition (Object obj ) {
66+ Map <String , Object > map = (Map <String , Object >) obj ;
67+ return map .containsKey ("photoUrls" ) || map .containsKey ("petId" );
68+ }
69+
6570 private static Stream <Arguments > provideParameters () {
6671 Map <String , Object > petInput = Map .of ("petId" , 10 );
6772 Map <String , Object > starTrekInput = Map .of ("uid" , "MOMA0000092393" );
6873 Condition <Object > petCondition =
69- new Condition <>(
70- o -> ((Map <String , Object >) o ).containsKey ("photoUrls" ), "callHttpCondition" );
74+ new Condition <>(HTTPWorkflowDefinitionTest ::httpCondition , "callHttpCondition" );
7175 Condition <Object > starTrekCondition =
7276 new Condition <>(
7377 o ->
You can’t perform that action at this time.
0 commit comments