junit測試

一、若是@Test註解的方法是靜態的會報這樣的錯誤:測試

Method 'initializationError' not found,opening the test classspa

二、使用註解@Test的時候,測試類不要命名爲Test,不然會出現錯誤。it

相關文章
相關標籤/搜索