Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在使用 Eclipse Helios IDK 并安装了最新的 JRE (1.6)。我已将 4.8 和 4.9 版本的 junit jar 添加到构建路径中。但是,每当我右键单击>新建时,都没有像您期望的那样创建 junit 测试用例的选项。即使在转到 other>java 和 other 中的每个其他目录之后,我也找不到创建测试用例的选项。我需要一个插件来初始化这些 .jar 文件吗?
提前感谢您的帮助!
默认情况下(在我的 Helios 中也是如此)即使您的类路径中没有 JUnit jar,JUnit 测试用例也应该可用。然后 Eclipse 要求将 JUnit jar 添加到类路径中。
尝试移除罐子并再次启动“新建..”向导。