Skip to content

Commit

Permalink
update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Jun 16, 2024
1 parent 538b00a commit 312fbbf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
distribution: 'corretto'
- name: Publish package
env:
JRELEASER_NEXUS2_USERNAME: ${{ secrets.JRELEASER_NEXUS2_USERNAME }}
JRELEASER_NEXUS2_PASSWORD: ${{ secrets.JRELEASER_NEXUS2_PASSWORD }}
JRELEASER_NEXUS2_USERNAME: ${{ secrets.TOKEN_JRELEASER_NEXUS2_USERNAME }}
JRELEASER_NEXUS2_TOKEN: ${{ secrets.TOKEN_JRELEASER_NEXUS2_TOKEN }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/ch/digitalfondue/vatchecker/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ static ExtractionResult doCallAndExtract(Document document,
String body = Utils.prepareTemplate(document, params);
try (InputStream is = documentFetcher.apply(endpointUrl, body); Reader isr = new InputStreamReader(is, StandardCharsets.UTF_8)) {
Document result = Utils.toDocument(isr);

Node validNode = (Node) validElementMatcher.evaluate(result, XPathConstants.NODE);
Node faultNode = (Node) SOAP_FAULT_MATCHER.evaluate(result, XPathConstants.NODE);
List<String> extracted = new ArrayList<>(validElementExtractors.length);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void testSuccess() {

@Test
public void testCorrectCountryCodeButInvalidVAT() {
EUVatCheckResponse resp = EUVatChecker.doCheck("IT", "00950501000");
EUVatCheckResponse resp = EUVatChecker.doCheck("NL", "85187947B01");
Assert.assertEquals(false, resp.isValid());
Assert.assertEquals("---", resp.getName());
Assert.assertEquals("---", resp.getAddress());
Expand Down

0 comments on commit 312fbbf

Please sign in to comment.