正在加载图片...
上游充通大学 SHANGHAI JIAO TONG UNIVERSITY Eclipses会询问是否添加junit jar包,确定后新建一个HelloTest类, 用来测试Hello类。一般自己导入下载的junit包。 New 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 CancelEclipse会询问是否添加junit.jar包,确定后新建一个HelloTest类, 用来测试Hello类。一般自己导入下载的junit包
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有