Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public void serializesPriorAuthenticationDetails() {
" }\n" +
"}";

Calendar authTime = Calendar.getInstance();
Calendar authTime = Calendar.getInstance(java.util.TimeZone.getTimeZone("UTC"));
authTime.set(2024, Calendar.FEBRUARY, 10, 22, 45, 30);

ThreeDSecureLookupPriorAuthenticationDetails priorAuthenticationDetails = new ThreeDSecureLookupPriorAuthenticationDetails()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void toXMLIncludesAllElements() throws IOException, SAXException {
TransactionRequest txnRequest = new TransactionRequest();
TransactionIndustryRequest request = new TransactionIndustryRequest(txnRequest);

Calendar arrivalDate = Calendar.getInstance();
Calendar arrivalDate = Calendar.getInstance(java.util.TimeZone.getTimeZone("UTC"));
arrivalDate.set(2023, Calendar.FEBRUARY, 10, 22, 45, 30);

request.industryType(Transaction.IndustryType.TRAVEL_FLIGHT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
public class TransactionLevelFeeReportTest {
@Test
public void interchangeReportIsParsed() throws IOException, ParseException {
String url = "file://"
+ new File("src/test/resources/fixtures/transaction_level_interchange_fee_report.csv").getAbsolutePath();
String url = new File("src/test/resources/fixtures/transaction_level_interchange_fee_report.csv").toURI().toURL().toString();
TransactionLevelFeeReport report = new TransactionLevelFeeReport(url);
assertEquals(9, report.getCSVRecords().size());

Expand Down Expand Up @@ -55,8 +54,7 @@ public void interchangeReportIsParsed() throws IOException, ParseException {

@Test
public void flatFeeReportIsParsed() throws IOException, ParseException {
String url =
"file://" + new File("src/test/resources/fixtures/transaction_level_fee_report.csv").getAbsolutePath();
String url = new File("src/test/resources/fixtures/transaction_level_fee_report.csv").toURI().toURL().toString();
TransactionLevelFeeReport report = new TransactionLevelFeeReport(url);
assertEquals(9, report.getCSVRecords().size());

Expand Down