Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Changed Tests and added Ignore-tags if needed for example if further … #108

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

DerAusHeidelberg
Copy link
Contributor

…configuration is needed for the Testing-Keypair.

pom.xml Show resolved Hide resolved
@@ -51,7 +51,7 @@ public void testRateRetrieval() throws HttpCommunicationException, ParseExceptio
Date orderDate = getDate("21.06.2019");
List<HirePurchaseRatePlan> rateList = getHeidelpay().hirePurchaseRates(BigDecimal.TEN, Currency.getInstance("EUR"), effectiveInterestRate, orderDate);
assertNotNull(rateList);
assertEquals(6, rateList.size());
assertEquals(4, rateList.size());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this value might vary depending on merchant configuration. Changing that might break tests for an other merchant.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I am mainly working on this with this Keypair so I think this should be set to the values of the Java-SDK Merchant.

Copy link
Member

@sixer1182 sixer1182 Mar 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests should also work for every merchant out there who wants to run them.

Comment on lines +244 to +245
paypage.setTermsAndConditionUrl(new URL("https://www.unzer.com/en/privacy-statement/"));
paypage.setPrivacyPolicyUrl(new URL("https://www.unzer.com/en/privacy-statement/"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These routes do not exist

paypage.setHelpUrl(new URL("https://www.unzer.com/en/support/"));
paypage.setImprintUrl(new URL("https://www.unzer.com/en/impressum/"));
paypage.setPrivacyPolicyUrl(new URL("https://www.unzer.com/en/datenschutz/"));
paypage.setTermsAndConditionUrl(new URL("https://www.unzer.com/en/datenschutz/"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a different route.
So it is clear every link is modified separately.

@@ -51,7 +51,7 @@ public void testRateRetrieval() throws HttpCommunicationException, ParseExceptio
Date orderDate = getDate("21.06.2019");
List<HirePurchaseRatePlan> rateList = getHeidelpay().hirePurchaseRates(BigDecimal.TEN, Currency.getInstance("EUR"), effectiveInterestRate, orderDate);
assertNotNull(rateList);
assertEquals(6, rateList.size());
assertEquals(4, rateList.size());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this will always be 4?
Better check it is >0 or not empty.

@@ -51,7 +51,7 @@ public void testRateRetrieval() throws HttpCommunicationException, ParseExceptio
Date orderDate = getDate("21.06.2019");
List<InstallmentSecuredRatePlan> rateList = getHeidelpay().installmentSecuredRates(BigDecimal.TEN, Currency.getInstance("EUR"), effectiveInterestRate, orderDate);
assertNotNull(rateList);
assertEquals(6, rateList.size());
assertEquals(4, rateList.size());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants