Skip to search.
junitmax · JUnit Max

Group Information

  • Members: 55
  • Category: Development
  • Founded: Feb 17, 2009
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
Solution for NoSuchMethodError describeMismatch using Hamcrest...   Message List  
Reply Message #294 of 393 |
Hi,

When I try using CoreMatchers.hasItems, I get this error (NoSuchMethodError
describeMismatch)

I've seen a post here indicating to downgrade to Hamcrest 1.1 but Ive tried that
and it didn't work.

I know that this problem occurs because of an old Matcher class in the JUnit jar
file and so, what I thought I might be able to do is just use the
junit-4.8.2-dep.jar file in my JUnitMax plugins folder.

What I saw was that everything showed up as warnings in the problems pane.

So I doctored the original Jar file and manually removed the hamcrest classes.
This worked fine!

It seems that there is something hard coded to load the junit-4.8.4.jar file up.
If I replace it with the dep jar and rename, it also works fine.

I thought it might be the MANIFEST.MF, but no amount of changing the classpath
in that seems to have any effect. Is there somehwere else that the name of the
Jar file is listed?

Anyway the monkey patch is to just replace the Jar with the dep one and rename.






Tue Dec 14, 2010 1:30 pm

jimbarritt
Offline Offline
Send Email Send Email

Message #294 of 393 |
Expand Messages Author Sort by Date

Hi, When I try using CoreMatchers.hasItems, I get this error (NoSuchMethodError describeMismatch) I've seen a post here indicating to downgrade to Hamcrest 1.1...
jimbarritt Offline Send Email Dec 14, 2010
1:30 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help