my dog learned polymorphism*
The moose likes Testing and the fly likes PowerMock + tetng + easymock versiong issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "PowerMock + tetng + easymock versiong issues" Watch "PowerMock + tetng + easymock versiong issues" New topic
Author

PowerMock + tetng + easymock versiong issues

Darvesh Niz
Ranch Hand

Joined: May 12, 2008
Posts: 119
Hello

After we upgrade to maven 3 the powermock functionality is not working. i know a lot of people had issues with version here is the version i am using

testng (5.14.10) + easymock(3.0) + easymockclassextension(3.0) + powermock (1.4.8)

OUr project used to work and we moved to maven3 and i am sure some dependencies got changed.

i wrote a simple Test method to test a Final Class and i get always the error CAnnot subclass final class

below is my code



any insight?

Thanks

James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1012
    
    5

http://docs.oracle.com/javase/tutorial/java/IandI/final.html
Darvesh Niz
Ranch Hand

Joined: May 12, 2008
Posts: 119
sorry i dont understand your answer.
dd you mean i should declare my instance variable inside the setup method as final.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PowerMock + tetng + easymock versiong issues
 
Similar Threads
Problem creating mock using PowerMock
mocking private static methods with PowerMock
PowerMock: StackOverFlow
Mocking final class with Powermock + Easymock + testNG
powermock : ProcessBuilder redirectErrorStream giving nullPointerException