Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5667

Can't create test for ExtractText command line tool

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0 PDFBox
    • 3.0.1 PDFBox, 4.0.0
    • Text extraction
    • None
    • openjdk 11.0.20 2023-07-18
      OpenJDK Runtime Environment (build 11.0.20+8-post-Ubuntu-1ubuntu122.04)
      OpenJDK 64-Bit Server VM (build 11.0.20+8-post-Ubuntu-1ubuntu122.04, mixed mode, sharing)

    Description

      I think it's an issue with the testing framework, not PDFBox.

      When I try to create a new test for the ExtractText command line tool, it fails because the standard output is empty after running the first test.

      If I change the declaration of a ExtractText variable (removing "static final") that references System.out the test works.

      If you can confirm it's an issue with the test framework I would appreciate it!

      Thank you! 

      Attachments

        1. picocli_execution.txt
          21 kB
          Marcelo Modesto
        2. TestExtractText fails.txt
          3 kB
          Marcelo Modesto

        Activity

          People

            lehmi Andreas Lehmkühler
            lmodesto.work Marcelo Modesto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: