-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from netplex/update2024
Update 2024
- Loading branch information
Showing
8 changed files
with
57 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,35 @@ | ||
|
||
name: json smart unit tests | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- update2024 | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java-version: [8, 11, 16, 17, 21] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up jdk 17 | ||
uses: actions/setup-java@v3 | ||
|
||
- name: Set up JDK ${{ matrix.java-version }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
java-version: ${{ matrix.java-version }} | ||
distribution: 'temurin' | ||
- name: unit tests accessors-smart | ||
run: cd accessors-smart; mvn -B install; mvn -B clean test | ||
cache: 'maven' | ||
|
||
- name: unit tests json-smart | ||
- name: Unit tests accessors-smart | ||
run: cd accessors-smart; mvn -B install; mvn -B clean test | ||
|
||
- name: Unit tests json-smart | ||
run: cd json-smart; mvn -B install; mvn -B clean test | ||
|
||
- name: unit tests json-smart-action | ||
- name: Unit tests json-smart-action | ||
run: cd json-smart-action; mvn -B install; mvn -B clean test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
accessors-smart/src/test/java/net/minidev/asm/TestDateConvertCustom.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package net.minidev.asm; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class TestDateConvertCustom { | ||
/** | ||
* some JAVA version use aternative space. | ||
* @throws Exception | ||
*/ | ||
@Test | ||
public void testCANADACustom() throws Exception { | ||
String testDate = "Jan 23, 2012, 1:42:59 PM"; | ||
ConvertDate.convertToDate(testDate); | ||
assertTrue(true, "parse " + testDate + " do not crash"); | ||
} | ||
} |