junit的Test不能使用,报错信息:Test is not an annotation type

在使用junit的Test做测试时,注解@Test报错”Test is not an annotation type”,发现是因为测试类的类名命名为了Test,所以导致错误。

测试类类名不能直接命名为“Test”!!!!!!!!!!!

 

posted @ 2019-07-22 09:18  勤俭的搬运工  阅读(1244)  评论(0编辑  收藏  举报