Skip to content

Commit 7237134

Browse files
committed
feat: add MongoDB demo feature and step definitions
1 parent f0056b1 commit 7237134

File tree

14 files changed

+97
-556
lines changed

14 files changed

+97
-556
lines changed

pom.xml

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@
2323
<maven.compiler.source>21</maven.compiler.source>
2424
<maven.compiler.target>21</maven.compiler.target>
2525
<maven.compile.version>3.5.1</maven.compile.version>
26-
<maven-surefire-plugin.version>3.1.0</maven-surefire-plugin.version>
26+
<maven-surefire-plugin.version>3.5.4</maven-surefire-plugin.version>
2727
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2828
<jakarta.json.bind.version>3.0.0</jakarta.json.bind.version>
2929
<jakarta.json.version>2.1.1</jakarta.json.version>
3030
<tinkerpop.version>3.6.1</tinkerpop.version>
3131
<weld.se.core.version>6.0.3.Final</weld.se.core.version>
3232
<mockito.verson>5.18.0</mockito.verson>
3333
<assertj.version>3.24.2</assertj.version>
34-
<junit.version>5.9.2</junit.version>
34+
<junit.version>5.14.0</junit.version>
35+
<cocumber.version>7.30.0</cocumber.version>
3536
</properties>
3637

3738
<dependencies>
@@ -87,6 +88,12 @@
8788
<version>${junit.version}</version>
8889
<scope>test</scope>
8990
</dependency>
91+
<dependency>
92+
<groupId>org.junit.platform</groupId>
93+
<artifactId>junit-platform-suite-api</artifactId>
94+
<version>1.14.0</version>
95+
<scope>test</scope>
96+
</dependency>
9097
<dependency>
9198
<groupId>org.mockito</groupId>
9299
<artifactId>mockito-core</artifactId>
@@ -117,6 +124,33 @@
117124
<version>3.27.3</version>
118125
<scope>test</scope>
119126
</dependency>
127+
<dependency>
128+
<groupId>io.cucumber</groupId>
129+
<artifactId>cucumber-java</artifactId>
130+
<version>${cocumber.version}</version>
131+
<scope>test</scope>
132+
</dependency>
133+
<dependency>
134+
<groupId>io.cucumber</groupId>
135+
<artifactId>cucumber-junit-platform-engine</artifactId>
136+
<version>${cocumber.version}</version>
137+
<scope>test</scope>
138+
</dependency>
139+
140+
<dependency>
141+
<groupId>net.java.dev.jna</groupId>
142+
<artifactId>jna</artifactId>
143+
<version>5.18.1</version>
144+
<scope>test</scope>
145+
</dependency>
146+
<dependency>
147+
<groupId>net.java.dev.jna</groupId>
148+
<artifactId>jna-platform</artifactId>
149+
<version>5.18.1</version>
150+
<scope>test</scope>
151+
</dependency>
152+
153+
120154
</dependencies>
121155
<build>
122156
<pluginManagement>
@@ -130,11 +164,6 @@
130164
<source>${maven.compiler.source}</source>
131165
</configuration>
132166
</plugin>
133-
<plugin>
134-
<groupId>org.apache.maven.plugins</groupId>
135-
<artifactId>maven-surefire-plugin</artifactId>
136-
<version>${maven-surefire-plugin.version}</version>
137-
</plugin>
138167
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
139168
<plugin>
140169
<groupId>org.eclipse.m2e</groupId>
@@ -168,6 +197,16 @@
168197
</plugin>
169198
</plugins>
170199
</pluginManagement>
200+
<plugins>
201+
<plugin>
202+
<groupId>org.apache.maven.plugins</groupId>
203+
<artifactId>maven-surefire-plugin</artifactId>
204+
<version>${maven-surefire-plugin.version}</version>
205+
<configuration>
206+
<useModulePath>false</useModulePath>
207+
</configuration>
208+
</plugin>
209+
</plugins>
171210
</build>
172211

173212
<repositories>

src/main/java/org/soujava/demos/mongodb/document/CleanStatus.java

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

src/main/java/org/soujava/demos/mongodb/document/Room.java

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

src/main/java/org/soujava/demos/mongodb/document/RoomBuilder.java

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

src/main/java/org/soujava/demos/mongodb/document/RoomRepository.java

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

src/main/java/org/soujava/demos/mongodb/document/RoomStatus.java

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

src/main/java/org/soujava/demos/mongodb/document/RoomType.java

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

src/test/java/org/soujava/demos/mongodb/document/AppTest.java

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

0 commit comments

Comments
 (0)