Skip to content

Commit

Permalink
Added JUnit5 to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
alex268 committed Feb 12, 2024
1 parent 354bbb4 commit e139455
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
11 changes: 11 additions & 0 deletions basic_example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
<name>YDB Basic Example</name>
<description>Simple example of usage Java SDK for YDB</description>

<properties>
<junit5.version>5.10.1</junit5.version>
</properties>

<dependencies>
<dependency>
<groupId>tech.ydb</groupId>
Expand All @@ -36,6 +40,13 @@
<artifactId>ydb-junit5-support</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit5.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
16 changes: 5 additions & 11 deletions jdbc/spring-data-jpa-v5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,17 @@
<version>1.19.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>tech.ydb.test</groupId>
<artifactId>ydb-junit5-support</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring.boot.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>tech.ydb.test</groupId>
<artifactId>ydb-junit5-support</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
Expand Down
8 changes: 8 additions & 0 deletions url-shortener-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<properties>
<jetty.version>10.0.14</jetty.version>
<gson.version>2.9.0</gson.version>
<junit5.version>5.10.1</junit5.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -53,6 +54,13 @@
<artifactId>ydb-junit5-support</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit5.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<dependencyManagement>
Expand Down

0 comments on commit e139455

Please sign in to comment.