Call Private and protected methods on JMockIT?

Discussion DashboardCategory: TechnicalCall Private and protected methods on JMockIT?
DHARMEDRA SAHU Staff asked 6 years ago
DHARMEDRA SAHU Staff replied 6 years ago

We can cal private or protected method with in a other method using below class and invoke method –
Deencapsulation.invoke(tested, “parseTransactionString”, “blah blah”);

Where
tested: Objrct which hold method
parseTransactionString: method nama
“blah blah”: Input parameter value