java junit 单元测试框架方法上写@Test错误提示:this is not an annotation type

已经导入了jar包并且设置了路径,直接写@Test画波浪线显示错误
2025-05-19 02:54:29
推荐回答(2个)
回答1:

看看你是不是有叫Test的类或者别的东西,给改个名字

回答2:

import org.junit.Test;