【发布时间】:2018-08-17 08:44:56
【问题描述】:
我在 IDEA-2018.2 中使用 Spek 插件和 Gradle 构建工具进行 Junit 测试 这是上面的依赖版本-
ext.junitPlatformVersion = '1.0.0'
ext.spekVersion = '1.1.5'
依赖-
testRuntime "org.junit.platform:junit-platform-launcher:$junitPlatformVersion"
当运行 throw ./gradlew test 时,它测试良好,没有任何错误,但是当在该测试文件中运行 Spek Run 时,它会抛出以下错误-
java.lang.NoSuchMethodError: com.company.Class.method(Linput1; Linput2) Lio/reactivex/Single;
由于公司的隐私没有写出实际的类名和方法。有什么帮助吗?
【问题讨论】:
标签: gradle intellij-idea junit kotlin spek