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) {
62
62
.hasMessageContaining ("There are JsonSchema validation errors" );
63
63
}
64
64
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
+
65
70
private static Stream <Arguments > provideParameters () {
66
71
Map <String , Object > petInput = Map .of ("petId" , 10 );
67
72
Map <String , Object > starTrekInput = Map .of ("uid" , "MOMA0000092393" );
68
73
Condition <Object > petCondition =
69
- new Condition <>(
70
- o -> ((Map <String , Object >) o ).containsKey ("photoUrls" ), "callHttpCondition" );
74
+ new Condition <>(HTTPWorkflowDefinitionTest ::httpCondition , "callHttpCondition" );
71
75
Condition <Object > starTrekCondition =
72
76
new Condition <>(
73
77
o ->
You can’t perform that action at this time.
0 commit comments