Skip to content

Commit d840c61

Browse files
committed
use junit5
1 parent 860caff commit d840c61

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

generator/pom.xml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<plugin>
3232
<groupId>org.apache.maven.plugins</groupId>
3333
<artifactId>maven-surefire-plugin</artifactId>
34-
<version>2.12</version>
34+
<version>2.22.2</version>
3535
<configuration>
3636
<systemProperties>
3737
<property>
@@ -76,7 +76,8 @@
7676
<configuration>
7777
<sources>
7878
<source>
79-
src/main/java</source>
79+
src/main/java
80+
</source>
8081
</sources>
8182
</configuration>
8283
</execution>
@@ -89,7 +90,8 @@
8990
<configuration>
9091
<sources>
9192
<source>
92-
src/test/java</source>
93+
src/test/java
94+
</source>
9395
</sources>
9496
</configuration>
9597
</execution>
@@ -114,15 +116,21 @@
114116
<scope>provided</scope>
115117
</dependency>
116118
<dependency>
117-
<groupId>junit</groupId>
118-
<artifactId>junit</artifactId>
119-
<version>${junit-version}</version>
119+
<groupId>org.junit.jupiter</groupId>
120+
<artifactId>junit-jupiter-api</artifactId>
121+
<version>5.8.0</version> <!-- JUnit 5 のバージョン -->
122+
<scope>test</scope>
123+
</dependency>
124+
<dependency>
125+
<groupId>org.junit.jupiter</groupId>
126+
<artifactId>junit-jupiter-engine</artifactId>
127+
<version>5.8.0</version> <!-- JUnit 5 のバージョン -->
128+
<scope>test</scope>
120129
</dependency>
121130
</dependencies>
122131
<properties>
123132
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
124133
<openapi-generator-version>7.0.0</openapi-generator-version>
125134
<maven-plugin-version>1.0.0</maven-plugin-version>
126-
<junit-version>4.13.2</junit-version>
127135
</properties>
128136
</project>

generator/src/test/java/line/bot/generator/LineBotSdkNodejsGeneratorGeneratorTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package line.bot.generator;
22

3-
import org.junit.Test;
3+
import org.junit.jupiter.api.Test;
44
import org.openapitools.codegen.ClientOptInput;
55
import org.openapitools.codegen.DefaultGenerator;
66
import org.openapitools.codegen.config.CodegenConfigurator;
77

8-
import static org.junit.Assert.assertEquals;
8+
import static org.junit.jupiter.api.Assertions.assertEquals;
9+
910

1011
/***
1112
* This test allows you to easily launch your code generation software under a debugger.

0 commit comments

Comments
 (0)