File tree Expand file tree Collapse file tree
src/test/java/com/unzer/payment Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ ) and this project adheres
66to [ 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 >
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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments