zoukankan      html  css  js  c++  java
  • IntelliJ IDEA工具增加test测试方法,报java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing错误

    是因为我在IntelliJ IDEA中,通过plugins增加

    插件的时候,在

    增加的测试类是junit4.12,改版本的jar包不再包含hamcrest-library.jar 。我是通过将自己的项目增加Maven支持,在项目上右键,Add Framework Support

     选择Maven

     在新增的pom.xml文件中,增加

    <dependencies>
    <dependency>
    <groupId>org.hamcrest</groupId>
    <artifactId>hamcrest-library</artifactId>
    <version>1.3</version>
    </dependency>

    </dependencies>

    即可。
  • 相关阅读:
    ajax理论
    模块
    node.js(1)
    ES6
    data对象
    数组
    对象
    webdriver对应的驱动版本
    TrineaAndroidCommon API Guide
    PV,UV,IP概念
  • 原文地址:https://www.cnblogs.com/BaleW/p/8567430.html
Copyright © 2011-2022 走看看