2017-02-20 39 views

回答

2

您正在使用static方法,因此class本身從未被創建爲object,因此從不測試該能力。

+1

好吧,如何測試一個靜態方法與覆蓋? –

+1

http://stackoverflow.com/questions/9700179/junit-testing-helper-class-with-only-static-methods like this – Stefan