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

在使用junit的Test作測試時,註解@Test報錯」Test is not an annotation type」,發現是由於測試類的類名命名爲了Test,因此致使錯誤。測試

測試類類名不能直接命名爲「Test」!!!!!!!!!!!blog

相關文章
相關標籤/搜索