IDEA项目使用@Test注解时出现,@org.junit.Test

2022-11-01 08:46:18

Java 项目写测试类@Test注解时出现,@org.junit.Test
** 问题描述**
Java 项目写测试类@Test注解时出现,@org.junit.Test

@org.junit.Testpublicvoidtest(){System.out.println("hello World");}

解决方案:

在这里插入图片描述
发现类名叫Test ,更改类名后,问题解决

  • 作者:努力学习我最棒
  • 原文链接:https://blog.csdn.net/weixin_43788240/article/details/126697611
    更新时间:2022-11-01 08:46:18