2012年1月14日

摘要: 1. 控制输出时间<div> <p>this part is cached for 10 seconds. Note the timeout spec with invoke overrides CacheFor annotation. </p> `a controllers.more.Portlets.panel2(b), "10s"</div><p>内文字显示十秒钟然后进入panel2action2.log:log directives are used to print a line of informati 阅读全文
posted @ 2012-01-14 15:40 timelyxyz 阅读(720) 评论(0) 推荐(0)
摘要: junit4使用时导入的主要包org.junit.Assert.*;1. setUp与tearDown:这两个方法是junit framework中提供初始化和反初始化每个测试方法的。setUp是在每个测试方法调用前被调用,负责初始化测试方法所需要的测试环境;tearDown是在每个测试方法被调用后被调用,负责撤销测试环境。基本测试步骤如下:测试开始 -> setUp -> testXXX -> tearDown -> 测试结束2. public static void fail(java.lang.String message)输出错误信息3.TestSuite 组装 阅读全文
posted @ 2012-01-14 14:53 timelyxyz 阅读(357) 评论(0) 推荐(0)

导航