generated from pagopa/template-java-spring-microservice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolved various errors on broken JUnit tests (#33)
* fix: resolved error on broken JUnit tests * fix: upgraded some tests * fix: added test on idempotency lock * fix: incremented coverage on IdempotencyService
- Loading branch information
1 parent
7d1cf30
commit 00b20f8
Showing
10 changed files
with
854 additions
and
508 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
217 changes: 190 additions & 27 deletions
217
src/test/java/it/gov/pagopa/wispconverter/consumer/ConsumerTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
404 changes: 306 additions & 98 deletions
404
src/test/java/it/gov/pagopa/wispconverter/endpoint/ReceiptTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,95 @@ | ||
<soapenv:Envelope xmlns:pafn="http://pagopa-api.pagopa.gov.it/pa/paForNode.xsd" xmlns:ppt="http://ws.pagamenti.telematici.gov/ppthead" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.pagamenti.telematici.gov/"> | ||
<soapenv:Envelope xmlns:pafn="http://pagopa-api.pagopa.gov.it/pa/paForNode.xsd" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> | ||
<soapenv:Body> | ||
<pafn:paSendRTReq> | ||
<idPA>77777777777</idPA> | ||
<idBrokerPA>77777777777</idBrokerPA> | ||
<idStation>mystation</idStation> | ||
<receipt> | ||
<receiptId>c110729d258c4ab1b765fe902aae41d6</receiptId> | ||
<noticeNumber>311111111112222222</noticeNumber> | ||
<fiscalCode>77777777777</fiscalCode> | ||
<outcome>OK</outcome> | ||
<creditorReferenceId>11111111112222222</creditorReferenceId> | ||
<paymentAmount>30.00</paymentAmount> | ||
<description>test</description> | ||
<companyName>company EC1</companyName> | ||
<officeName>office EC</officeName> | ||
<debtor> | ||
<uniqueIdentifier> | ||
<entityUniqueIdentifierType>F</entityUniqueIdentifierType> | ||
<entityUniqueIdentifierValue>JHNDOE00A01F205N</entityUniqueIdentifierValue> | ||
</uniqueIdentifier> | ||
<fullName>John Doe</fullName> | ||
<streetName>street</streetName> | ||
<civicNumber>12</civicNumber> | ||
<postalCode>89020</postalCode> | ||
<city>city</city> | ||
<stateProvinceRegion>MI</stateProvinceRegion> | ||
<country>IT</country> | ||
<e-mail>john.doe@test.it</e-mail> | ||
</debtor> | ||
<transferList> | ||
<transfer> | ||
<idTransfer>1</idTransfer> | ||
<transferAmount>20.00</transferAmount> | ||
<fiscalCodePA>77777777777</fiscalCodePA> | ||
<companyName>company EC1</companyName> | ||
<IBAN>IT0000000000000000000000000</IBAN> | ||
<remittanceInformation>remittanceInformation1</remittanceInformation> | ||
<transferCategory>0101100IM</transferCategory> | ||
<metadata> | ||
<mapEntry> | ||
<key>keytest</key> | ||
<value>1</value> | ||
</mapEntry> | ||
</metadata> | ||
</transfer> | ||
<transfer> | ||
<idTransfer>2</idTransfer> | ||
<transferAmount>10.00</transferAmount> | ||
<fiscalCodePA>77777777778</fiscalCodePA> | ||
<companyName>company EC2</companyName> | ||
<IBAN>IT0000000000000000000000001</IBAN> | ||
<remittanceInformation>remittanceInformation2</remittanceInformation> | ||
<transferCategory>0201102IM</transferCategory> | ||
</transfer> | ||
</transferList> | ||
<idPSP>88888888888</idPSP> | ||
<pspFiscalCode>88888888888</pspFiscalCode> | ||
<pspPartitaIVA>88888888888</pspPartitaIVA> | ||
<PSPCompanyName>PSP name</PSPCompanyName> | ||
<idChannel>88888888888_01</idChannel> | ||
<channelDescription>app</channelDescription> | ||
<payer> | ||
<uniqueIdentifier> | ||
<entityUniqueIdentifierType>F</entityUniqueIdentifierType> | ||
<entityUniqueIdentifierValue>JHNDOE00A01F205N</entityUniqueIdentifierValue> | ||
</uniqueIdentifier> | ||
<fullName>John Doe</fullName> | ||
<streetName>street</streetName> | ||
<civicNumber>12</civicNumber> | ||
<postalCode>89020</postalCode> | ||
<city>city</city> | ||
<stateProvinceRegion>MI</stateProvinceRegion> | ||
<country>IT</country> | ||
<e-mail>john.doe@test.it</e-mail> | ||
</payer> | ||
<paymentMethod>creditCard</paymentMethod> | ||
<fee>2.00</fee> | ||
<primaryCiIncurredFee>0.50</primaryCiIncurredFee> | ||
<idBundle>1</idBundle> | ||
<idCiBundle>2</idCiBundle> | ||
<paymentDateTime>2021-10-01T17:48:22</paymentDateTime> | ||
<applicationDate>2021-10-01</applicationDate> | ||
<transferDate>2021-10-02</transferDate> | ||
<metadata> | ||
<mapEntry> | ||
<key>keytest</key> | ||
<value>1</value> | ||
</mapEntry> | ||
</metadata> | ||
<standin>false</standin> | ||
</receipt> | ||
</pafn:paSendRTReq> | ||
<pafn:paSendRTReq> | ||
<idPA>77777777777</idPA> | ||
<idBrokerPA>77777777777</idBrokerPA> | ||
<idStation>mystation</idStation> | ||
<receipt> | ||
<receiptId>c110729d258c4ab1b765fe902aae41d6</receiptId> | ||
<noticeNumber>348111111112222222</noticeNumber> | ||
<fiscalCode>77777777777</fiscalCode> | ||
<outcome>OK</outcome> | ||
<creditorReferenceId>48111111112222222</creditorReferenceId> | ||
<paymentAmount>30.00</paymentAmount> | ||
<description>test</description> | ||
<companyName>company EC1</companyName> | ||
<officeName>office EC</officeName> | ||
<debtor> | ||
<uniqueIdentifier> | ||
<entityUniqueIdentifierType>F</entityUniqueIdentifierType> | ||
<entityUniqueIdentifierValue>JHNDOE00A01F205N</entityUniqueIdentifierValue> | ||
</uniqueIdentifier> | ||
<fullName>John Doe</fullName> | ||
<streetName>street</streetName> | ||
<civicNumber>12</civicNumber> | ||
<postalCode>89020</postalCode> | ||
<city>city</city> | ||
<stateProvinceRegion>MI</stateProvinceRegion> | ||
<country>IT</country> | ||
<e-mail>john.doe@test.it</e-mail> | ||
</debtor> | ||
<transferList> | ||
<transfer> | ||
<idTransfer>1</idTransfer> | ||
<transferAmount>20.00</transferAmount> | ||
<fiscalCodePA>77777777777</fiscalCodePA> | ||
<companyName>company EC1</companyName> | ||
<IBAN>IT0000000000000000000000000</IBAN> | ||
<remittanceInformation>remittanceInformation1</remittanceInformation> | ||
<transferCategory>0101100IM</transferCategory> | ||
<metadata> | ||
<mapEntry> | ||
<key>keytest</key> | ||
<value>1</value> | ||
</mapEntry> | ||
</metadata> | ||
</transfer> | ||
<transfer> | ||
<idTransfer>2</idTransfer> | ||
<transferAmount>10.00</transferAmount> | ||
<fiscalCodePA>77777777778</fiscalCodePA> | ||
<companyName>company EC2</companyName> | ||
<IBAN>IT0000000000000000000000001</IBAN> | ||
<remittanceInformation>remittanceInformation2</remittanceInformation> | ||
<transferCategory>0201102IM</transferCategory> | ||
</transfer> | ||
</transferList> | ||
<idPSP>88888888888</idPSP> | ||
<pspFiscalCode>88888888888</pspFiscalCode> | ||
<pspPartitaIVA>88888888888</pspPartitaIVA> | ||
<PSPCompanyName>PSP name</PSPCompanyName> | ||
<idChannel>88888888888_01</idChannel> | ||
<channelDescription>app</channelDescription> | ||
<payer> | ||
<uniqueIdentifier> | ||
<entityUniqueIdentifierType>F</entityUniqueIdentifierType> | ||
<entityUniqueIdentifierValue>JHNDOE00A01F205N</entityUniqueIdentifierValue> | ||
</uniqueIdentifier> | ||
<fullName>John Doe</fullName> | ||
<streetName>street</streetName> | ||
<civicNumber>12</civicNumber> | ||
<postalCode>89020</postalCode> | ||
<city>city</city> | ||
<stateProvinceRegion>MI</stateProvinceRegion> | ||
<country>IT</country> | ||
<e-mail>john.doe@test.it</e-mail> | ||
</payer> | ||
<paymentMethod>creditCard</paymentMethod> | ||
<fee>2.00</fee> | ||
<primaryCiIncurredFee>0.50</primaryCiIncurredFee> | ||
<idBundle>1</idBundle> | ||
<idCiBundle>2</idCiBundle> | ||
<paymentDateTime>2021-10-01T17:48:22</paymentDateTime> | ||
<applicationDate>2021-10-01</applicationDate> | ||
<transferDate>2021-10-02</transferDate> | ||
<metadata> | ||
<mapEntry> | ||
<key>keytest</key> | ||
<value>1</value> | ||
</mapEntry> | ||
</metadata> | ||
<standin>false</standin> | ||
</receipt> | ||
</pafn:paSendRTReq> | ||
</soapenv:Body> | ||
</soapenv:Envelope> | ||
</soapenv:Envelope> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<SOAP-ENV:Envelope | ||
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | ||
<SOAP-ENV:Header> | ||
<ns3:intestazionePPT xmlns:ns3="http://ws.pagamenti.telematici.gov/ppthead"> | ||
<identificativoIntermediarioPA>15376371009</identificativoIntermediarioPA> | ||
<identificativoStazioneIntermediarioPA>15376371009_48</identificativoStazioneIntermediarioPA> | ||
<identificativoDominio>15376371009</identificativoDominio> | ||
<identificativoUnivocoVersamento>633836153345163</identificativoUnivocoVersamento> | ||
<codiceContestoPagamento>437642378654347</codiceContestoPagamento> | ||
</ns3:intestazionePPT> | ||
</SOAP-ENV:Header> | ||
<SOAP-ENV:Body> | ||
<ns3:paaInviaRT xmlns:ns3="http://ws.pagamenti.telematici.gov/"> | ||
<rt> | ||
|
||
</rt> | ||
</ns3:paaInviaRT> | ||
</SOAP-ENV:Body> | ||
</SOAP-ENV:Envelope> |