Junit中Testsuite为什么不运行
环境:windows2000+JBuilderX+Jetty+Cactus,对单独的TestCase运行没有问题,当我用TestSuite时总是提示The test has not started.也没有报错,有关的事件也运行了
事件提示如下:14:21:16.724 EVENT Starting Jetty/4.2.22
14:21:17.285 EVENT Started ServletHttpContext[/test]
14:21:17.315 EVENT Started SocketListener on 0.0.0.0:8000
14:21:17.315 EVENT Started org.mortbay.jetty.Server@161d36b
14:21:18.326 EVENT Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8000]
14:21:18.326 EVENT Stopped SocketListener on 0.0.0.0:8000
14:21:18.326 EVENT Stopped ServletHttpContext[/test]
14:21:18.336 EVENT Stopped org.mortbay.jetty.Server@161d36b
用的就是Junit in Action中的代码编译都没有错,请高手帮忙!!!谢谢
事件提示如下:14:21:16.724 EVENT Starting Jetty/4.2.22
14:21:17.285 EVENT Started ServletHttpContext[/test]
14:21:17.315 EVENT Started SocketListener on 0.0.0.0:8000
14:21:17.315 EVENT Started org.mortbay.jetty.Server@161d36b
14:21:18.326 EVENT Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8000]
14:21:18.326 EVENT Stopped SocketListener on 0.0.0.0:8000
14:21:18.326 EVENT Stopped ServletHttpContext[/test]
14:21:18.336 EVENT Stopped org.mortbay.jetty.Server@161d36b
用的就是Junit in Action中的代码编译都没有错,请高手帮忙!!!谢谢
...全文
相关推荐
2、junit学习之hamcrest、testSuite介绍及测试原则
**独立运行**:测试用例之间不应有依赖关系,每个测试都应能独立运行并得到一致的结果。3. **可重复性**:测试应该始终产生相同的结果,无论何时运行,只要条件不变。4.
junit 入门培训ppt
在JUnit中,单元测试应具备三个特性:1. 单元测试必须独立运行,不依赖其他测试。2. 错误应以单个测试为单位进行检测和报告。3. 必须方便地指定要运行的特定测试。
JUnit三分钟教程 ---- 快速起步
`TestAll`类的`main`方法会启动JUnit测试运行器,执行所有的测试用例。
Junit的一份资料
TestRunner 是执行测试的组件,它运行 TestSuite 中的所有测试并报告结果。
junit基本教程.doc
而`exception`则表示不期望的错误,通常是程序运行时抛出的异常。


