This is the site that help me solve the problem.
http://code.google.com/p/hamcrest/issues/detail?id=128
The hamcrest.jar needs to go before the Junit library in the build path.
More Related Contents:
- Getting “NoSuchMethodError: org.hamcrest.Matcher.describeMismatch” when running test in IntelliJ 10.5
- java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
- Hamcrest compare collections
- How to Re-run failed JUnit tests immediately?
- JUnit: How to simulate System.in testing?
- How to do a JUnit assert on a message in a logger
- JUnit 4 Test Suites
- How to tell a Mockito mock object to return something different the next time it is called?
- How to run all tests belonging to a certain Category in JUnit 4
- Running Selenium scripts with JMeter
- How does Junit @Rule work?
- How to use JUnit to test asynchronous processes
- Set System Property With Spring Configuration File
- AssertEquals 2 Lists ignore order
- Eclipse No tests found using JUnit 5 caused by NoClassDefFoundError for LauncherFactory
- TestSuite Setup in jUnit 4
- What’s the difference between failure and error in JUnit?
- JUnit 4: Set up things in a test suite before tests are run (like a test’s @BeforeClass method, just for a test suite)
- How to test a Jersey REST web service?
- PowerMock, mock a static method, THEN call real methods on all other statics
- In Java how can I validate a thrown exception with JUnit?
- Setting up JNDI Datasource in jUnit
- How do I mock a REST template exchange?
- Why are my mocked methods not calld when executing a unit test?
- cucumber throwing java.lang.NoClassDefFoundError: io/cucumber/core/gherkin/FeatureParser
- Excluding a non param test in parameterized test class
- Exception in thread “main” java.lang.NoClassDefFoundError: junit/textui/ResultPrinter
- JUnit: new instance before invoking each @Test method. What are the benefits?
- JUnit test with dynamic number of tests
- Easier DynamoDB local testing