gr8vyguy@Blogjava

          JUnit Best Practices

          Do not use the test-case constructor to set up a test case, use setUp().

          Don't assume the order in which tests within a test case run.

          Avoid writing test cases with side effects.

          Call a superclass's setUp() and tearDown() methods when subclassing

          Do not load data from hard-coded locations on a filesystem

          Keep tests in the same location as the source code

          Name tests properly

          Ensure that tests are time-independent

          Consider locale when writing tests

          Utilize JUnit's assert/fail methods and exception handling for clean test code

          Document tests in javadoc

          Avoid visual inspection

          Keep tests small and fast

          Use the reflection-driven JUnit API

          Build a test case for the entire system

          Test thread safety

          posted on 2007-04-24 11:07 gr8vyguy 閱讀(476) 評(píng)論(0)  編輯  收藏 所屬分類: Java

          <2007年4月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          導(dǎo)航

          統(tǒng)計(jì)

          公告

        1. 轉(zhuǎn)載請注明出處.
        2. msn: gr8vyguy at live.com
        3. 常用鏈接

          留言簿(9)

          隨筆分類(68)

          隨筆檔案(80)

          文章分類(1)

          My Open Source Projects

          搜索

          積分與排名

          最新評(píng)論

          主站蜘蛛池模板: 阿拉善左旗| 历史| 洞头县| 海盐县| 鄂托克前旗| 丰都县| 南投县| 灯塔市| 桐庐县| 社旗县| 蒲江县| 天门市| 雅江县| 沙洋县| 克东县| 玛沁县| 亚东县| 九台市| 山丹县| 修武县| 临西县| 仁化县| 积石山| 德安县| 定兴县| 嫩江县| 比如县| 三河市| 运城市| 百色市| 麻江县| 大同市| 北川| 玛曲县| 喀什市| 新和县| 邮箱| 拜城县| 察雅县| 伊川县| 莆田市|