控制台报错:
java.lang.NoSuchMethodError: org.hamcrest.Matcher.describeMismatch
如果没有其它语法错误,把junit 4.9 jar包改成4.11版本即可。
参阅网上资料:
http://stackoverflow.com/questions/15833015/nosuchmethoderror-with-hamcrest-1-3-junit-4-11。
According to the JUnit documentation the JUnit 4.11 Maven dependency does no longer include compiled Hamcrest classes, instead it has a dependency on Hamcrest-core 1.3; so the NoSuchMethodError
should not occur .