• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

PowerMock + tetng + easymock versiong issues

 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://docs.oracle.com/javase/tutorial/java/IandI/final.html
 
Darvesh Niz
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry i dont understand your answer.
dd you mean i should declare my instance variable inside the setup method as final.

 
reply
    Bookmark Topic Watch Topic
  • New Topic