IntelliJ Java IDE
The moose likes Testing and the fly likes Supress call from super keyword --powermockito Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "Supress call from super keyword --powermockito" Watch "Supress call from super keyword --powermockito" New topic
Author

Supress call from super keyword --powermockito

dileep keely
Ranch Hand

Joined: Jun 28, 2010
Posts: 90
I am able to supress a superclass method "superMethod()" in my case when called from ChildClass as " super.superMethod()" using powermockito.
But the problem is arrised in ascenario when the Childclass has a method name similar to the invocation target name.


As told earlier I won't be able to suppress the call made in the below scenario (underlined) as the method name is same as the invocation method name "super.superMethod()" hence I get
the assertion error.




Can some one help me to know if there is some way ?

 
 
subject: Supress call from super keyword --powermockito
 
Threads others viewed
static method overriding
Compile time polymorphism
PowerMockito + Junit + Ant
Overriding private method
Question on Powermockito Partial Mocking
IntelliJ Java IDE