1414/**
1515 * Created by emerson on 7/5/17.
1616 */
17- public class MerchantApi_ParsePostBackXmlResponseTests
17+ class MerchantApi_ParsePostBackXmlResponseTests
1818{
1919 private PensioMerchantAPI api ;
2020
@@ -25,7 +25,7 @@ public void setUp() throws Exception
2525 }
2626
2727 @ Test
28- public void ParsePostBackXmlResponse_ReadCardHolderMessageMustBeShown () throws PensioAPIException , IOException , URISyntaxException {
28+ void ParsePostBackXmlResponse_ReadCardHolderMessageMustBeShown () throws PensioAPIException , IOException , URISyntaxException {
2929 String xmlResponse = readFile ("com/pensio/api/txt/CardHolderMessageMustBeShownFalse.xml" );
3030 APIResponse response = api .parsePostBackXMLParameter (xmlResponse );
3131 Assertions .assertFalse (response .getBody ().isCardHolderMessageMustBeShown ());
@@ -45,37 +45,37 @@ private String readFile(String file) throws IOException, URISyntaxException {
4545 }
4646
4747 @ Test
48- public void ParsePostBackXmlResponse_ReadReasonCode () throws PensioAPIException , IOException , URISyntaxException {
48+ void ParsePostBackXmlResponse_ReadReasonCode () throws PensioAPIException , IOException , URISyntaxException {
4949 String xmlResponse = readFile ("com/pensio/api/txt/ReasonCode.xml" );
5050 APIResponse response = api .parsePostBackXMLParameter (xmlResponse );
5151 Assertions .assertEquals ("NONE" , response .getBody ().getTransactions ().getTransaction ().get (0 ).getReasonCode ());
5252
5353 }
5454
5555 @ Test
56- public void ParsePostBackXmlResponse_ReadPaymentId () throws PensioAPIException , IOException , URISyntaxException {
56+ void ParsePostBackXmlResponse_ReadPaymentId () throws PensioAPIException , IOException , URISyntaxException {
5757 String xmlResponse = readFile ("com/pensio/api/txt/ReasonCode.xml" );
5858 APIResponse response = api .parsePostBackXMLParameter (xmlResponse );
5959 Assertions .assertEquals ("17794956-9bb6-4854-9712-bce5931e6e3a" , response .getBody ().getTransactions ().getTransaction ().get (0 ).getPaymentId ());
6060
6161 }
6262
6363 @ Test
64- public void ParsePostBackXmlResponse_ReadPaymentSource () throws PensioAPIException , IOException , URISyntaxException {
64+ void ParsePostBackXmlResponse_ReadPaymentSource () throws PensioAPIException , IOException , URISyntaxException {
6565 String xmlResponse = readFile ("com/pensio/api/txt/PaymentSource.xml" );
6666 APIResponse response = api .parsePostBackXMLParameter (xmlResponse );
6767 Assertions .assertEquals ("eCommerce" , response .getBody ().getTransactions ().getTransaction ().get (0 ).getPaymentSource ());
6868 }
6969
7070 @ Test
71- public void ParsePostBackXmlResponse_WrongPaymentSource () throws PensioAPIException , IOException , URISyntaxException {
71+ void ParsePostBackXmlResponse_WrongPaymentSource () throws PensioAPIException , IOException , URISyntaxException {
7272 String xmlResponse = readFile ("com/pensio/api/txt/PaymentSource.xml" );
7373 APIResponse response = api .parsePostBackXMLParameter (xmlResponse );
7474 Assertions .assertNotSame ("eCommerce_without3ds" , response .getBody ().getTransactions ().getTransaction ().get (0 ).getPaymentSource ());
7575 }
7676
7777 @ Test
78- public void ParsePostBackXmlResponse_ReadECommerceWithout3dSecurePaymentSource () throws PensioAPIException , IOException , URISyntaxException {
78+ void ParsePostBackXmlResponse_ReadECommerceWithout3dSecurePaymentSource () throws PensioAPIException , IOException , URISyntaxException {
7979 String xmlResponse = readFile ("com/pensio/api/txt/PaymentSourceECommerceWithout3dSecure.xml" );
8080 APIResponse response = api .parsePostBackXMLParameter (xmlResponse );
8181 Assertions .assertEquals ("eCommerce_without3ds" , response .getBody ().getTransactions ().getTransaction ().get (0 ).getPaymentSource ());
0 commit comments