Skip to content

Commit cec8163

Browse files
fix(deps): update all minor dependencies (v2-main) (#269)
1 parent 0c69659 commit cec8163

File tree

5 files changed

+85
-18
lines changed

5 files changed

+85
-18
lines changed

.github/workflows/create-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- 'src/**'
99
- 'pom.xml'
1010

11+
env:
12+
JAVA_VERSION: '17'
13+
1114
jobs:
1215
check-version:
1316
runs-on: ubuntu-latest
@@ -93,7 +96,7 @@ jobs:
9396
- name: Set up Maven Central Repository
9497
uses: actions/setup-java@v4
9598
with:
96-
java-version: 11
99+
java-version: ${{ env.JAVA_VERSION }}
97100
distribution: adopt
98101
server-id: ossrh
99102
server-username: MAVEN_USERNAME

.github/workflows/create-snapshot.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
types: [opened, edited, synchronize, reopened, labeled]
66

7+
env:
8+
JAVA_VERSION: '17'
9+
710
jobs:
811
# begin the snapshot verification before deployment
912
check-version:
@@ -47,11 +50,11 @@ jobs:
4750
steps:
4851
- uses: actions/checkout@v4
4952

50-
- name: Set up JDK 11
53+
- name: Set up JDK
5154
uses: actions/setup-java@v4
5255
with:
5356
distribution: "temurin"
54-
java-version: "11"
57+
java-version: ${{ env.JAVA_VERSION }}
5558

5659
- name: Tests
5760
run: mvn test --no-transfer-progress
@@ -79,7 +82,7 @@ jobs:
7982
- name: Set up Maven Central Repository
8083
uses: actions/setup-java@v4
8184
with:
82-
java-version: 11
85+
java-version: ${{ env.JAVA_VERSION }}
8386
distribution: adopt
8487
server-id: ossrh
8588
server-username: MAVEN_USERNAME

.github/workflows/tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@ on:
44
pull_request:
55
types: [opened, edited, synchronize, reopened]
66

7+
env:
8+
JAVA_VERSION: '17'
9+
710
jobs:
811
test:
912
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'deploy-snapshot') }}
1013
runs-on: ubuntu-latest
1114
steps:
1215
- uses: actions/checkout@v4
1316

14-
- name: Set up JDK 11
17+
- name: Set up JDK
1518
uses: actions/setup-java@v4
1619
with:
1720
distribution: "temurin"
18-
java-version: "11"
21+
java-version: ${{ env.JAVA_VERSION }}
1922

2023
- name: Tests
2124
run: mvn test --no-transfer-progress

pom.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>fr.insee.lunatic</groupId>
77
<artifactId>lunatic-model</artifactId>
8-
<version>2.6.4</version>
8+
<version>2.7.0</version>
99
<packaging>jar</packaging>
1010

1111
<name>Lunatic Model</name>
@@ -20,9 +20,9 @@
2020
<!-- Build properties -->
2121
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2222
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
23-
<maven.compiler.release>11</maven.compiler.release>
23+
<maven.compiler.release>17</maven.compiler.release>
2424
<!-- Version properties -->
25-
<saxon.version>12.4</saxon.version>
25+
<saxon.version>12.5</saxon.version>
2626
</properties>
2727

2828
<licenses>
@@ -66,7 +66,7 @@
6666
<dependency>
6767
<groupId>org.eclipse.persistence</groupId>
6868
<artifactId>eclipselink</artifactId>
69-
<version>4.0.3</version>
69+
<version>4.0.4</version>
7070
</dependency>
7171
<dependency>
7272
<groupId>org.glassfish</groupId>
@@ -89,17 +89,17 @@
8989
<dependency>
9090
<groupId>commons-io</groupId>
9191
<artifactId>commons-io</artifactId>
92-
<version>2.16.1</version>
92+
<version>2.18.0</version>
9393
</dependency>
9494
<dependency>
9595
<groupId>org.slf4j</groupId>
9696
<artifactId>slf4j-api</artifactId>
97-
<version>2.0.13</version>
97+
<version>2.0.16</version>
9898
</dependency>
9999

100100
<dependency>
101101
<groupId>org.xmlunit</groupId>
102-
<artifactId>xmlunit-matchers</artifactId>
102+
<artifactId>xmlunit-assertj3</artifactId>
103103
<version>2.10.0</version>
104104
<scope>test</scope>
105105
</dependency>
@@ -118,7 +118,7 @@
118118
<dependency>
119119
<groupId>org.apache.logging.log4j</groupId>
120120
<artifactId>log4j-slf4j-impl</artifactId>
121-
<version>2.23.1</version>
121+
<version>2.24.2</version>
122122
<scope>test</scope>
123123
</dependency>
124124
<dependency>
@@ -129,7 +129,7 @@
129129
<dependency>
130130
<groupId>org.junit.jupiter</groupId>
131131
<artifactId>junit-jupiter</artifactId>
132-
<version>5.10.2</version>
132+
<version>5.11.3</version>
133133
<scope>test</scope>
134134
</dependency>
135135
</dependencies>
@@ -155,7 +155,7 @@
155155
<plugin>
156156
<groupId>org.apache.maven.plugins</groupId>
157157
<artifactId>maven-surefire-plugin</artifactId>
158-
<version>3.3.1</version>
158+
<version>3.5.2</version>
159159
<configuration>
160160
<encoding>UTF-8</encoding>
161161
<argLine>-Dfile.encoding=UTF-8
@@ -305,7 +305,7 @@
305305
<plugin>
306306
<groupId>org.apache.maven.plugins</groupId>
307307
<artifactId>maven-javadoc-plugin</artifactId>
308-
<version>3.8.0</version>
308+
<version>3.11.2</version>
309309
<executions>
310310
<execution>
311311
<id>attach-javadocs</id>
@@ -330,7 +330,7 @@
330330
<plugin>
331331
<groupId>org.apache.maven.plugins</groupId>
332332
<artifactId>maven-gpg-plugin</artifactId>
333-
<version>3.2.4</version>
333+
<version>3.2.7</version>
334334
<executions>
335335
<execution>
336336
<id>sign-artifacts</id>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
package fr.insee.lunatic.conversion.data;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.xmlunit.assertj3.XmlAssert;
5+
6+
class JsonToXmlDataTest {
7+
8+
/**
9+
* Lunatic bug: in some cases pairwise data can be inconsistent.
10+
* Yet the data conversion shouldn't fail so as not to break the data extraction of client collection tools
11+
* that uses the json to xml conversion.
12+
*/
13+
@Test
14+
void convertInconsistentPairwiseData() throws Exception {
15+
// Given
16+
String jsonInconsistentData = """
17+
{
18+
"COLLECTED": {
19+
"LIENS_MISSING": {
20+
"COLLECTED": [
21+
null,
22+
[null, null]
23+
]
24+
}
25+
},
26+
"CALCULATED": {},
27+
"EXTERNAL": {
28+
"FOO_EXTERNAL": "some value"
29+
}
30+
}""";
31+
// When
32+
JSONLunaticDataToXML converter = new JSONLunaticDataToXML();
33+
String result = converter.transform(jsonInconsistentData);
34+
// Then
35+
String expected = """
36+
<?xml version="1.0" encoding="UTF-8"?>
37+
<Data>
38+
<COLLECTED>
39+
<LIENS_MISSING>
40+
<COLLECTED>
41+
<COLLECTED type="null"/>
42+
<COLLECTED>
43+
<COLLECTED type="null"/>
44+
<COLLECTED type="null"/>
45+
</COLLECTED>
46+
</COLLECTED>
47+
</LIENS_MISSING>
48+
</COLLECTED>
49+
<CALCULATED/>
50+
<EXTERNAL>
51+
<FOO_EXTERNAL type="string">some value</FOO_EXTERNAL>
52+
</EXTERNAL>
53+
</Data>
54+
""";
55+
XmlAssert.assertThat(expected).and(result).ignoreWhitespace().areIdentical();
56+
}
57+
58+
}

0 commit comments

Comments
 (0)