[PR] Modernize test assertions using JUnit 5 assertInstanceOf [poi]

sahvx655-wq (via GitHub) <[email protected]>
Newsgroups gmane.comp.jakarta.poi.devel
Message-ID <[email protected]>
sahvx655-wq opened a new pull request, #1108:
URL: https://github.com/apache/poi/pull/1108

   Replace legacy instanceof assertions with JUnit 5's assertInstanceOf across selected tests in the poi, poi-ooxml, and poi-scratchpad modules.
   This modernizes the test suite, improves assertion readability, and eliminates several redundant casts while preserving existing test behavior.
   
   Changes
   Replaced assertTrue(obj instanceof Type) patterns with assertInstanceOf(Type.class, obj).
   Removed redundant casts made unnecessary by assertInstanceOf.
   
   Updated tests in:
   poi
   poi-ooxml
   poi-scratchpad
   
   Verification
   Executed the affected test suites locally using Gradle and verified that all updated tests pass.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.