瀏覽代碼

Add missing project-wide test execution

Patrick-Christopher Mattulat 1 年之前
父節點
當前提交
6a6da9e1b9

+ 16 - 1
pom.xml

@@ -4,7 +4,7 @@
 
   <groupId>com.lynarstudios</groupId>
   <artifactId>ls-standard-library-jni</artifactId>
-  <version>1.0-SNAPSHOT</version>
+  <version>2023.1.0</version>
   <packaging>jar</packaging>
 
   <name>ls-standard-library-jni</name>
@@ -17,6 +17,21 @@
     <maven.compiler.target>11</maven.compiler.target>
   </properties>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>3.0.0-M7</version>
+        <configuration>
+          <includes>
+            <include>**/*Test.java</include>
+          </includes>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
   <dependencies>
     <dependency>
       <groupId>org.junit.jupiter</groupId>

+ 13 - 13
src/test/java/com/lynarstudios/ls/std/time/systemtime/DateParameterTest.java

@@ -8,7 +8,7 @@ class DateParameterTest
   private final DateParameter parameter = new DateParameter();
 
   @Test
-  void constructor()
+  public void constructor()
   {
     DateParameter dateParameter = new DateParameter(1989, (byte) 6, (byte) 1, (byte) 10, (byte) 52, (byte) 22);
 
@@ -21,78 +21,78 @@ class DateParameterTest
   }
 
   @Test
-  void getDay() 
+  public void getDay()
   {
     Assertions.assertEquals(0, this.parameter.getDay());
   }
 
   @Test
-  void getHour() 
+  public void getHour()
   {
     Assertions.assertEquals(0, this.parameter.getHour());
   }
 
   @Test
-  void getMinute() 
+  public void getMinute()
   {
     Assertions.assertEquals(0, this.parameter.getMinute());
   }
 
   @Test
-  void getMonth()
+  public void getMonth()
   {
     Assertions.assertEquals(0, this.parameter.getMonth());
   }
 
   @Test
-  void getSecond() 
+  public void getSecond()
   {
     Assertions.assertEquals(0, this.parameter.getSecond());
   }
 
   @Test
-  void getYear() 
+  public void getYear()
   {
     Assertions.assertEquals(0, this.parameter.getYear());
   }
 
   @Test
-  void setDay()
+  public void setDay()
   {
     this.parameter.setDay((byte) 1);
     Assertions.assertEquals(1, this.parameter.getDay());
   }
 
   @Test
-  void setHour()
+  public void setHour()
   {
     this.parameter.setHour((byte) 10);
     Assertions.assertEquals(10, this.parameter.getHour());
   }
 
   @Test
-  void setMinute()
+  public void setMinute()
   {
     this.parameter.setMinute((byte) 52);
     Assertions.assertEquals(52, this.parameter.getMinute());
   }
 
   @Test
-  void setMonth()
+  public void setMonth()
   {
     this.parameter.setMonth((byte) 6);
     Assertions.assertEquals(6, this.parameter.getMonth());
   }
 
   @Test
-  void setSecond()
+  public void setSecond()
   {
     this.parameter.setSecond((byte) 22);
     Assertions.assertEquals(22, this.parameter.getSecond());
   }
 
   @Test
-  void setYear()
+  public void setYear()
   {
     this.parameter.setYear(1989);
     Assertions.assertEquals(1989, this.parameter.getYear());

+ 1 - 1
src/test/java/com/lynarstudios/ls/std/time/systemtime/LocalDateTimeConverterTest.java

@@ -8,7 +8,7 @@ import java.time.LocalDateTime;
 class LocalDateTimeConverterTest
 {
   @Test
-  void toDateParameter()
+  public void toDateParameter()
   {
     LocalDateTime localDateTime = LocalDateTime.of(2030, 6, 1, 10, 55, 13);
     DateParameter parameter = LocalDateTimeConverter.toDateParameter(localDateTime);