上浒充通大粤 SJTU School Of Software 2009-2-3 Eclipse会询问是否添加junit,.jar包,确定后新建一个HelloTest类, 用来测试Hello类。一般自己导入下载的junit包。 Newy JUnit Test Case JUnit Test Case Select the name of the new JUnit test case.You have the options to specify the class under test and on the next page,to select methods to be tested. Source Folder: Hello/src Browse,.· Package: example Browse.·· Name: HelloTest Superclass: junit.framework.TestCase Browse· Which method stubs would you like to create? public static void main(String[]args) Add TestRunner statement for: text ui setup() tearDown() ■constructor( Class Under Test: example.Hello Browse... 次件学院 Back Next> Finish CancelSJTU School Of Software 2009-2-3 软件学院 Eclipse会询问是否添加junit.jar包,确定后新建一个HelloTest类, 用来测试Hello类。一般自己导入下载的junit包