gpt4 book ai didi

GWT Junit - 错误 ='no compilation unit for that type was seen'

转载 作者:行者123 更新时间:2023-12-04 09:56:54 25 4
gpt4 key购买 nike

我正在尝试在示例应用程序中运行 GWT 单元测试。我跑了

cmd/c/java/gwt-windows-1.6.4/webAppCreator.cmd -out gwttasks com.gwttasks.GwtTasks

将 junit-4.5.jar 复制到 lib 目录中,并将其添加到类路径中。

冉:

cmd/c/java/gwt-windows-1.6.4/junitCreator.cmd -junit lib/junit-4.5.jar -module com.gwttasks.GwtTasks -eclipse GwtTasks com.gwt
任务.unit.GwtJunit

当我尝试运行任何生成的 cmd 文件(例如 GwtJunit-hosted.cmd)或任何启动文件时,我收到以下错误。我见过的所有网页都说要将测试源添加到类路径中,但它已经存在,所以这不是问题。还有人看到这个吗?

com.google.gwt.junit.JUnitFatalLaunchException:在模块“com.gwttasks.GwtTasks”中找不到测试类“com.gwttasks.unit.GwtJunit”;没有看到该类型的编译单元
在 com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java:390)
在 com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:626)
...

最佳答案

关于GWT Junit - 错误 ='no compilation unit for that type was seen',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1056041/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com