diff --git a/impl/test/pom.xml b/impl/test/pom.xml
index 33a81db5..e9e24013 100644
--- a/impl/test/pom.xml
+++ b/impl/test/pom.xml
@@ -1,60 +1,75 @@
-
- 4.0.0
-
- io.serverlessworkflow
- serverlessworkflow-impl
- 8.0.0-SNAPSHOT
-
- serverlessworkflow-impl-test
- Serverless Workflow :: Impl :: Test
-
-
+
+ 4.0.0
+
io.serverlessworkflow
- serverlessworkflow-impl-jackson
-
-
- io.serverlessworkflow
- serverlessworkflow-api
-
-
- io.serverlessworkflow
- serverlessworkflow-impl-http
-
-
- io.serverlessworkflow
- serverlessworkflow-impl-jackson-jwt
-
-
- org.glassfish.jersey.media
- jersey-media-json-jackson
-
-
- org.glassfish.jersey.core
- jersey-client
-
-
- org.junit.jupiter
- junit-jupiter-engine
-
-
- org.junit.jupiter
- junit-jupiter-params
-
-
- org.assertj
- assertj-core
-
-
- ch.qos.logback
- logback-classic
-
-
- org.mockito
- mockito-core
-
-
- com.squareup.okhttp3
- mockwebserver
-
-
+ serverlessworkflow-impl
+ 8.0.0-SNAPSHOT
+
+ serverlessworkflow-impl-test
+ Serverless Workflow :: Impl :: Test
+
+
+ io.serverlessworkflow
+ serverlessworkflow-impl-jackson
+
+
+ io.serverlessworkflow
+ serverlessworkflow-api
+
+
+ io.serverlessworkflow
+ serverlessworkflow-impl-http
+
+
+ io.serverlessworkflow
+ serverlessworkflow-impl-jackson-jwt
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-jackson
+
+
+ org.glassfish.jersey.core
+ jersey-client
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+
+
+ org.assertj
+ assertj-core
+
+
+ ch.qos.logback
+ logback-classic
+
+
+ org.mockito
+ mockito-core
+
+
+ com.squareup.okhttp3
+ mockwebserver
+
+
+
+
+
+ maven-jar-plugin
+
+
+
+ test-jar
+
+
+
+
+
+
\ No newline at end of file
diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/EventDefinitionTest.java b/impl/test/src/test/java/io/serverlessworkflow/impl/test/EventDefinitionTest.java
index d2ed4407..9be63737 100644
--- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/EventDefinitionTest.java
+++ b/impl/test/src/test/java/io/serverlessworkflow/impl/test/EventDefinitionTest.java
@@ -93,9 +93,10 @@ void testEventsListened(String listen, String emit1, String emit2, JsonNode expe
void testForEachInAnyIsExecutedAsEventArrive() throws IOException, InterruptedException {
WorkflowDefinition listenDefinition =
appl.workflowDefinition(
- WorkflowReader.readWorkflowFromClasspath("listen-to-any-until.yaml"));
+ WorkflowReader.readWorkflowFromClasspath("workflows-samples/listen-to-any-until.yaml"));
WorkflowDefinition emitDoctorDefinition =
- appl.workflowDefinition(WorkflowReader.readWorkflowFromClasspath("emit-doctor.yaml"));
+ appl.workflowDefinition(
+ WorkflowReader.readWorkflowFromClasspath("workflows-samples/emit-doctor.yaml"));
WorkflowInstance waitingInstance = listenDefinition.instance(Map.of());
CompletableFuture future = waitingInstance.start();
assertThat(waitingInstance.status()).isEqualTo(WorkflowStatus.WAITING);
@@ -116,22 +117,29 @@ private static Instant getInstant(ArrayNode result, int index) {
private static Stream eventListenerParameters() {
return Stream.of(
- Arguments.of("listen-to-any.yaml", "emit.yaml", array(cruellaDeVil()), Map.of()),
Arguments.of(
- "listen-to-any-filter.yaml", "emit-doctor.yaml", doctor(), Map.of("temperature", 39)));
+ "workflows-samples/listen-to-any.yaml",
+ "workflows-samples/emit.yaml",
+ array(cruellaDeVil()),
+ Map.of()),
+ Arguments.of(
+ "workflows-samples/listen-to-any-filter.yaml",
+ "workflows-samples/emit-doctor.yaml",
+ doctor(),
+ Map.of("temperature", 39)));
}
private static Stream eventsListenerParameters() {
return Stream.of(
Arguments.of(
- "listen-to-all.yaml",
- "emit-doctor.yaml",
- "emit.yaml",
+ "workflows-samples/listen-to-all.yaml",
+ "workflows-samples/emit-doctor.yaml",
+ "workflows-samples/emit.yaml",
array(temperature(), cruellaDeVil())),
Arguments.of(
- "listen-to-any-until-consumed.yaml",
- "emit-doctor.yaml",
- "emit-out.yaml",
+ "workflows-samples/listen-to-any-until-consumed.yaml",
+ "workflows-samples/emit-doctor.yaml",
+ "workflows-samples/emit-out.yaml",
array(temperature())));
}
diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/HTTPWorkflowDefinitionTest.java b/impl/test/src/test/java/io/serverlessworkflow/impl/test/HTTPWorkflowDefinitionTest.java
index 84e95e1e..35b1985f 100644
--- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/HTTPWorkflowDefinitionTest.java
+++ b/impl/test/src/test/java/io/serverlessworkflow/impl/test/HTTPWorkflowDefinitionTest.java
@@ -55,8 +55,8 @@ void testWorkflowExecution(String fileName, Object input, Condition