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 閱讀(484) 評論(0)  編輯  收藏 所屬分類: Java

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

          導航

          統計

          公告

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

          留言簿(9)

          隨筆分類(68)

          隨筆檔案(80)

          文章分類(1)

          My Open Source Projects

          搜索

          積分與排名

          最新評論

          主站蜘蛛池模板: 天全县| 延庆县| 公安县| 汕头市| 固原市| 察雅县| 金秀| 南郑县| 桦川县| 玛多县| 南岸区| 沈阳市| 新化县| 交城县| 达州市| 宁化县| 青田县| 元江| 武乡县| 太湖县| 长汀县| 巩留县| 苍溪县| 绩溪县| 泗阳县| 望江县| 上饶市| 赤壁市| 漠河县| 新宾| 曲水县| 祁连县| 周宁县| 闻喜县| 吉安市| 青阳县| 夏邑县| 泰和县| 厦门市| 滁州市| 海原县|