Skip to content

Commit cf640dc

Browse files
Merge pull request #50 from unzerdev/develop
Merge Develop into Master for Release 1.1.2.2 with Hotfix for Log4j-Exploit
2 parents 599b58a + 1c96c64 commit cf640dc

5 files changed

Lines changed: 16 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres
66
to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.2.2][1.1.2.2]
9+
10+
### Changed
11+
12+
* Upgrade of the used Log4j Dependencies to fix the Log4j Zero-Day-Exploit
13+
* Several minor improvements.
14+
815
## [1.1.2.1][1.1.2.1]
916

1017
### Changed
@@ -85,6 +92,8 @@ to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
8592
* Remove deprecated classes
8693
* RestCommunication
8794

95+
[1.1.2.2]: http://github.com/unzerdev/java-sdk/compare/1.1.2.1..1.1.2.2
96+
8897
[1.1.2.1]: http://github.com/unzerdev/java-sdk/compare/1.1.2.0..1.1.2.1
8998

9099
[1.1.2.0]: http://github.com/unzerdev/java-sdk/compare/1.1.1.1..1.1.2.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Java 1.8 or later.
1212
<dependency>
1313
<groupId>com.unzer.payment</groupId>
1414
<artifactId>java-sdk</artifactId>
15-
<version>1.1.2.1</version>
15+
<version>1.1.2.2</version>
1616
</dependency>
1717
```
1818

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.unzer.payment</groupId>
88
<artifactId>java-sdk</artifactId>
9-
<version>1.1.2.1</version>
9+
<version>1.1.2.2</version>
1010
<name>Unzer Java SDK</name>
1111
<description>Unzer Java SDK</description>
1212
<url>https://docs.unzer.com/</url>
@@ -247,13 +247,13 @@
247247
<dependency>
248248
<groupId>org.apache.logging.log4j</groupId>
249249
<artifactId>log4j-api</artifactId>
250-
<version>2.13.1</version>
250+
<version>2.15.0</version>
251251
</dependency>
252252

253253
<dependency>
254254
<groupId>org.apache.logging.log4j</groupId>
255255
<artifactId>log4j-core</artifactId>
256-
<version>2.13.1</version>
256+
<version>2.15.0</version>
257257
</dependency>
258258

259259

src/test/java/com/unzer/payment/business/paymenttypes/PaypalTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void testCreatePaypalWithEmail() throws HttpCommunicationException {
5050
paypal.setEmail("test.user@email.com");
5151
paypal = (Paypal) getUnzer().createPaymentType(paypal);
5252
assertNotNull(paypal.getId());
53-
assertEquals(null, paypal.getEmail());
53+
assertEquals("test.user@email.com", paypal.getEmail());
5454
}
5555

5656
@Test

src/test/java/com/unzer/payment/communication/JsonDateConverterTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,24 @@ public class JsonDateConverterTest {
1414

1515
@Test
1616
public void getDateTestFormatDateTime(){
17-
System.setProperty("user.timezone", "UTC");
1817
JsonObject jsonObject = new JsonObject();
1918
jsonObject.addProperty("date", "1980-12-01 12:00:00");
2019

2120

2221
JsonDateConverter jsonDateConverter = new JsonDateConverter();
2322
Date jsonDate = jsonDateConverter.getDate(jsonObject.get("date"));
24-
assertEquals("Mon Dec 01 12:00:00 UTC 1980", jsonDate.toString());
23+
assertEquals("Mon Dec 01 13:00:00 CET 1980", jsonDate.toString());
2524
}
2625

2726
@Test
2827
public void getDateTestFormatDate(){
29-
System.setProperty("user.timezone", "UTC");
3028
JsonObject jsonObject = new JsonObject();
3129
jsonObject.addProperty("date", "1980-12-01");
3230

3331

3432
JsonDateConverter jsonDateConverter = new JsonDateConverter();
3533
Date jsonDate = jsonDateConverter.getDate(jsonObject.get("date"));
36-
assertEquals("Mon Dec 01 00:00:00 UTC 1980", jsonDate.toString());
34+
assertEquals("Mon Dec 01 01:00:00 CET 1980", jsonDate.toString());
3735
}
3836

3937
@Test

0 commit comments

Comments
 (0)