posts - 138, comments - 150, trackbacks - 0, articles - 1
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

junit 笔记

Posted on 2007-10-30 17:59 G_G 阅读(83) 评论(0)  编辑  收藏 所属分类: JUnit
参考:http://caterpillar.onlyfun.net/GossipCN/JUnit/JUnitGossip.htm

1. TestSuite
  public static Test suite() {
    
TestSuite suite = new TestSuite(MathTool.class);
    
suite.addTest(new MathToolTest("testGcd"));
  }

2.全局属性
protected void setUp() throws Exception {
super.setUp();
arr = new ............;
}

protected void tearDown() throws Exception {
super.tearDown();
arr = null;
}

3. Cactus
web设置

http://caterpillar.onlyfun.net/GossipCN/JUnit/FirstCactusWithTomcat.htm
http://caterpillar.onlyfun.net/GossipCN/JUnit/FirstCactusWithJetty.htm








标题  
姓名  
主页
验证码 *  
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交