Skip to content

chore: remove legacy PowerMock test dependency#500

Merged
frankgiordano merged 1 commit into
zowe:mainfrom
chaitanyakatore:remove-powermock
May 26, 2026
Merged

chore: remove legacy PowerMock test dependency#500
frankgiordano merged 1 commit into
zowe:mainfrom
chaitanyakatore:remove-powermock

Conversation

@chaitanyakatore
Copy link
Copy Markdown
Contributor

Description

This PR removes the legacy powermock-reflect dependency from the test suite.

Changes Made

  • Refactored Tests: Updated JobGetJsonTest.java and JobGetTextTest.java to inject Mockito mocks directly via the package-private JobGet constructor, eliminating the need for PowerMock's Whitebox.setInternalState() utility.
  • Removed Dependency: Removed the powermock-reflect dependency from the pom.xml file.

Verification

  • Ran ./mvnw clean test to ensure all 786 tests execute and pass successfully.

Signed-off-by: chaitanya <chaitanyakatore@gmail.com>
@frankgiordano
Copy link
Copy Markdown
Collaborator

Thanks for the contribution. I’ll accept and merge the PR. It cleans up some legacy techniques that were still in place.

@frankgiordano frankgiordano merged commit cc8dafe into zowe:main May 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants