Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDFBOX-5284: Refactor Refactor PDFTabulaTextStripper to improve test … #130

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

wx930910
Copy link

Jira

Description

Replace test class PDFTabulaTextStripper by spying object and improve test design


Motivation
  • Decouple test class PDFTabulaTextStripper from production class PDFTextStripper.
  • Remove the redundant test child class PDFTabulaTextStripper
  • Remove the redundant constructor.

Key changed/added classes in this PR
  • Created spying object to replace test subclass PDFTabulaTextStripper, decoupled test from production code.
  • Created method that return the mocking object for code reuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant