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

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

          導(dǎo)航

          統(tǒng)計(jì)

          公告

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

          留言簿(9)

          隨筆分類(68)

          隨筆檔案(80)

          文章分類(1)

          My Open Source Projects

          搜索

          積分與排名

          最新評(píng)論

          主站蜘蛛池模板: 武胜县| 图木舒克市| 龙口市| 镇远县| 苍溪县| 兴海县| 西平县| 资溪县| 白玉县| 汕头市| 宝应县| 安康市| 清丰县| 儋州市| 吴桥县| 阳城县| 承德市| 萨嘎县| 潼南县| 原阳县| 鄂尔多斯市| 防城港市| 通山县| 新干县| 泊头市| 和硕县| 区。| 东港市| 闻喜县| 乌鲁木齐县| 高州市| 定南县| 台江县| 浦城县| 彭阳县| 黔西| 宜君县| 灵璧县| 荥经县| 米易县| 务川|