Skip to content

Commit

Permalink
Surefire and Maven updates
Browse files Browse the repository at this point in the history
- Disable failing test, because of missing font
  • Loading branch information
asturio committed Jan 8, 2024
1 parent 75b23a1 commit 65509c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
distribution: temurin
java-version: ${{matrix.java}}
cache: maven
- name: Check locales
run: locale -a
- name: Check maven version
run: mvn -v
- name: Build with Maven
run: mvn -B verify --file pom.xml -Dgpg.skip
run: mvn -B install --file pom.xml -Dgpg.skip
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.io.InputStream;
import java.lang.reflect.Field;

import java.nio.charset.StandardCharsets;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -446,7 +447,7 @@ public void testReadIssue60101PwOwner() throws IOException {
@Test
public void testReadIssue60102Pwæøå() throws IOException {
try ( InputStream resource = getClass().getResourceAsStream("/issue375/issue6010_2-pw=æøå.pdf") ) {
PdfReader pdfReader = new PdfReader(resource,"æøå".getBytes());
PdfReader pdfReader = new PdfReader(resource,"æøå".getBytes(StandardCharsets.UTF_8));
Assertions.assertTrue(pdfReader.isEncrypted(), "PdfReader fails to report test file to be encrypted.");
Assertions.assertTrue(isOwnerPasswordUsed(pdfReader), "PdfReader fails to report full permissions.");
Assertions.assertEquals(10, pdfReader.getNumberOfPages(), "PdfReader fails to report the correct number of pages");
Expand Down

0 comments on commit 65509c8

Please sign in to comment.