Skip to content

Commit

Permalink
Test methods to package visibility (java:S5786)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmusfaber committed May 22, 2024
1 parent 0ec439e commit d24e6d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public PdfSmartCopyTest() {
}

@Test
public void test1() {
void test1() {

Check warning on line 23 in openpdf/src/test/java/com/lowagie/text/pdf/PdfSmartCopyTest.java

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

openpdf/src/test/java/com/lowagie/text/pdf/PdfSmartCopyTest.java#L23

JUnit tests should include assert() or fail()
File orig = new File("src/test/resources/pdfsmartcopy_bec.pdf");
check(orig, 1);
}
Expand Down Expand Up @@ -49,7 +49,7 @@ private void check(File orig, int counter) {
}

@Test
public void canWriteAndCopy() throws IOException {
void canWriteAndCopy() throws IOException {
try (PdfReader reader = new PdfReader("src/test/resources/pdfsmartcopy_bec.pdf")) {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
try (Document document = new Document()) {
Expand Down

0 comments on commit d24e6d5

Please sign in to comment.