ソースを参照

Increase JUnit version to 5

Patrick-Christopher Mattulat 1 年間 前
コミット
bdac235474
2 ファイル変更15 行追加9 行削除
  1. 12 6
      pom.xml
  2. 3 3
      src/test/java/com/lynarstudios/ls/std/time/LibraryTest.java

+ 12 - 6
pom.xml

@@ -12,16 +12,22 @@
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <java.version>17</java.version>
-    <maven.compiler.source>17</maven.compiler.source>
-    <maven.compiler.target>17</maven.compiler.target>
+    <java.version>11</java.version>
+    <maven.compiler.source>11</maven.compiler.source>
+    <maven.compiler.target>11</maven.compiler.target>
   </properties>
 
   <dependencies>
     <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>4.13.2</version>
+      <groupId>org.junit.jupiter</groupId>
+      <artifactId>junit-jupiter-engine</artifactId>
+      <version>5.9.2</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.lynarstudios</groupId>
+      <artifactId>ls-standard-library-jni</artifactId>
+      <version>1.0-SNAPSHOT</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 3 - 3
src/test/java/com/lynarstudios/ls/std/time/LibraryTest.java

@@ -1,13 +1,13 @@
 package com.lynarstudios.ls.std.time;
 
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
 
 public class LibraryTest
 {
   @Test
   public void getBinaryName()
   {
-    Assert.assertEquals("ls-std-time", new Library().getBinaryName());
+    Assertions.assertEquals("ls-std-time", new Library().getBinaryName());
   }
 }