JunitExam(2)
http://www.diybl.com/ 2008-1-5 网络 点击:
[ 评论 ]
文章搜索:
【点击打包该文章】
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package junitExam; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * * @author */ public class MasterTester extends TestCase{ public static Test suite(){ TestSuite result = new TestSuite(); //result.addTest(new FileReaderTester("testRead")); //result.addTest(new FileReaderTester("testReadAtEnd")); //will test all methods in FileReaderTester that started with test result.addTest(new TestSuite(FileReaderTester.class)); return result; } public static void main (String [] args) { junit.textui.TestRunner.run(suite()); } }
如果图片或页面不能正常显示请点击这里 站内搜索:
推荐文章 |
