国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

JUnit -- A good thing to unit test

2019-11-18 11:22:00
字體:
供稿:網(wǎng)友

Let me start the blog life as a PRogramer in the world. People never put a high attention to unit test.

After I look at the JUnit, I begin to realize a formal process of developing java code. Unit test is important to every programer. We must ensure the robust of our code. Afer the design iteration and interface definition, we can write the unit test case before coding. It is useful to guarantee the quality of the code.

Inherite the TestCase class, and write the testXXX function. This is the main body to test. To verify the result, call assertXXX function. If return false, this case is false.

Several simple test cases can be collected together as a test suite. TestSuite suite = new TestSuite(""); suite.addTest(new InheriteTestCase("casename"); or suite.addTestSuite(InheriteTestCase.class); all the testXXX is added into test suite. junit.swingui.TestRunner.run(class). used to run the test case or test suite.
 
Next step, I want to study Cactus which is a project under apache. It is the remote test framework inherite from JUnit



發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 称多县| 隆德县| 安龙县| 金山区| 田阳县| 江孜县| 伊金霍洛旗| 文水县| 宁德市| 佛教| 房产| 高阳县| 凭祥市| 嵊州市| 涟水县| 东明县| 崇州市| 临泽县| 饶平县| 五原县| 义乌市| 响水县| 弋阳县| 新闻| 泸溪县| 犍为县| 锡林郭勒盟| 竹溪县| 九台市| 海南省| 永泰县| 嵊州市| 麻城市| 舞阳县| 黄山市| 吉首市| 出国| 扶风县| 德阳市| 奉贤区| 淅川县|