使用导入org.junit.jupiter.api.tag in Junit 4

发布于 2025-02-05 05:12:39 字数 265 浏览 3 评论 0原文

我必须使用导入org.junit.jupiter.api.tag;

我的项目在Eclipse 4.18中,我无法将其迁移到Eclipse 4.19。并写在Junit 4中。 我需要使用@tag注释 导入org.junit.jupiter.api.tag;我在Eclipse 4.18和Junit 4上的项目中是否可以使用,并且导致编译错误

我还能在Eclipse 4.18和Junit 4中使用@TAG或类似的内容,我应该使用什么导入?

我必须给出一些类似于@tag的注释。

I have to use import org.junit.jupiter.api.Tag;

my project is in eclipse 4.18, and I am not able to migrate it to eclipse 4.19 . and is written in junit 4.
I need to use the @Tag annotation
import org.junit.jupiter.api.Tag; does not work in my project on eclipse 4.18 and junit 4, and causes compilation errors

how else can I use @Tag or something similar in eclipse 4.18 and junit 4, what import should I use?

I have to give some annotation similar to @Tag from import org.junit.jupiter.api.Tag;what can I use a similar in junit4 and Eclipse 4.18?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文