This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
1
Is it possible to mock private methods with PowerMockito?
Post Flair (click to view more posts with a particular flair)
Post Body
Been toying around with junit and mocks, can't seem to find a way to mock private methods/constructors with and mock/powermockito. All the examples on the web just shows that I need a public method to call the private method to work with powermockito. Is there a way to directly access it for unit testing? Thanks.
Author
Account Strength
90%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
2,724
Link Karma
1,904
Comment Karma
820
Profile updated: 1 day ago
Posts updated: 2 weeks ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnprogra...