Skip to content

Commit 04166f0

Browse files
committed
[Fix #782] Moving tests around
1 parent edd3c3c commit 04166f0

File tree

7 files changed

+27
-44
lines changed

7 files changed

+27
-44
lines changed

impl/persistence/mvstore/pom.xml

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,10 @@
1414
<dependency>
1515
<groupId>com.h2database</groupId>
1616
<artifactId>h2-mvstore</artifactId>
17-
<version>${version.com.h2database}</version>
18-
</dependency>
17+
</dependency>
1918
<dependency>
2019
<groupId>io.serverlessworkflow</groupId>
2120
<artifactId>serverlessworkflow-persistence-big-map</artifactId>
2221
</dependency>
23-
<dependency>
24-
<groupId>io.serverlessworkflow</groupId>
25-
<artifactId>serverlessworkflow-api</artifactId>
26-
<scope>test</scope>
27-
</dependency>
28-
<dependency>
29-
<groupId>io.serverlessworkflow</groupId>
30-
<artifactId>serverlessworkflow-impl-jackson</artifactId>
31-
<scope>test</scope>
32-
</dependency>
33-
<dependency>
34-
<groupId>ch.qos.logback</groupId>
35-
<artifactId>logback-classic</artifactId>
36-
<scope>test</scope>
37-
</dependency>
38-
<dependency>
39-
<groupId>io.serverlessworkflow</groupId>
40-
<artifactId>serverlessworkflow-persistence-jackson-marshaller</artifactId>
41-
<scope>test</scope>
42-
</dependency>
43-
<dependency>
44-
<groupId>org.junit.jupiter</groupId>
45-
<artifactId>junit-jupiter-engine</artifactId>
46-
</dependency>
47-
<dependency>
48-
<groupId>org.assertj</groupId>
49-
<artifactId>assertj-core</artifactId>
50-
</dependency>
5122
</dependencies>
5223
</project>

impl/persistence/mvstore/src/test/resources/listen-to-any.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

impl/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<name>Serverless Workflow :: Impl</name>
1010
<packaging>pom</packaging>
1111
<properties>
12+
<version.com.h2database>1.4.199</version.com.h2database>
1213
<version.de.huxhorn.sulky>8.3.0</version.de.huxhorn.sulky>
1314
<version.jakarta.ws.rs>4.0.0</version.jakarta.ws.rs>
1415
<version.net.thisptr>1.6.0</version.net.thisptr>
@@ -41,6 +42,11 @@
4142
<artifactId>serverlessworkflow-persistence-jackson-marshaller</artifactId>
4243
<version>${project.version}</version>
4344
</dependency>
45+
<dependency>
46+
<groupId>io.serverlessworkflow</groupId>
47+
<artifactId>serverlessworkflow-persistence-mvstore</artifactId>
48+
<version>${project.version}</version>
49+
</dependency>
4450
<dependency>
4551
<groupId>io.serverlessworkflow</groupId>
4652
<artifactId>serverlessworkflow-impl-jackson-jwt</artifactId>
@@ -78,6 +84,11 @@
7884
<version>${version.org.glassfish.jersey}</version>
7985
<scope>test</scope>
8086
</dependency>
87+
<dependency>
88+
<groupId>com.h2database</groupId>
89+
<artifactId>h2-mvstore</artifactId>
90+
<version>${version.com.h2database}</version>
91+
</dependency>
8192
</dependencies>
8293
</dependencyManagement>
8394
<modules>

impl/test/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
<groupId>io.serverlessworkflow</groupId>
1717
<artifactId>serverlessworkflow-api</artifactId>
1818
</dependency>
19+
<dependency>
20+
<groupId>io.serverlessworkflow</groupId>
21+
<artifactId>serverlessworkflow-persistence-mvstore</artifactId>
22+
</dependency>
23+
<dependency>
24+
<groupId>io.serverlessworkflow</groupId>
25+
<artifactId>serverlessworkflow-persistence-jackson-marshaller</artifactId>
26+
<scope>test</scope>
27+
</dependency>
1928
<dependency>
2029
<groupId>io.serverlessworkflow</groupId>
2130
<artifactId>serverlessworkflow-impl-http</artifactId>
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package io.serverlessworkflow.tests.persistence;
16+
package io.serverlessworkflow.impl.test;
1717

1818
import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath;
1919

@@ -31,7 +31,8 @@ public static void main(String[] args) throws IOException {
3131
WorkflowApplication application =
3232
BytesBigMapApplicationBuilder.builder(WorkflowApplication.builder(), store).build()) {
3333
WorkflowDefinition definition =
34-
application.workflowDefinition(readWorkflowFromClasspath("listen-to-any.yaml"));
34+
application.workflowDefinition(
35+
readWorkflowFromClasspath("workflows-samples/listen-to-any.yaml"));
3536
definition.instance(Map.of()).start();
3637
}
3738
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package io.serverlessworkflow.tests.persistence;
16+
package io.serverlessworkflow.impl.test;
1717

1818
import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath;
1919
import static org.assertj.core.api.Assertions.assertThat;
@@ -45,7 +45,8 @@ public void testRestoreWaitingInstance() throws IOException {
4545
WorkflowPersistenceRestorer restorer =
4646
new BytesBigMapPersistenceRestorer(store, bufferFactory); ) {
4747
WorkflowDefinition definition =
48-
application.workflowDefinition(readWorkflowFromClasspath("listen-to-any.yaml"));
48+
application.workflowDefinition(
49+
readWorkflowFromClasspath("workflows-samples/listen-to-any.yaml"));
4950
Collection<WorkflowInstance> instances = restorer.restoreAll(definition).values();
5051
assertThat(instances).hasSize(1);
5152
instances.forEach(WorkflowInstance::start);
16 KB
Binary file not shown.

0 commit comments

Comments
 (0)