91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Introduction on Using Hamcrest Unit Test Framework

發布時間:2020-07-06 14:29:42 來源:網絡 閱讀:364 作者:zhukev 欄目:移動開發

 Hamcrest is a unit test framework, the assert function assertThat of hamcrest is more human readable comparing to the assert function of Junit, therefore, Junit4 has already adopted and integrated the hamcrest framework from version 4.4 on. Please check following screenshot.

 Introduction on Using Hamcrest Unit Test Framework

 But Junit4 integrates only the core features of hamcrest, in order to facilitate our test automation work, we should add the hamcrest JAR library with all features into our test project.

-         Hamcrest-all-xx.jar          : Contains all feature of hamcrest

-         Hamcreset-core-xx.jar  : Contains core feature of hamcrest

We could download hamcrest by following this link:

http://search.maven.org/#search|ga|1|g%3Aorg.hamcrest

Following description would illustrate how to use hamcrest-all in our test project.

Step 1:Drag&drop the hamcrest-all jar package to the libs(Create one if not exist)folder of the project

Introduction on Using Hamcrest Unit Test Framework

Step 2: Import hamcrest modules into test script

Introduction on Using Hamcrest Unit Test Framework

“importstatic org.hamcrest.MatcherAssert.assertThat”: in order to use the function“assertThat”

-  “import static org.hamcrest.Matchers.*”:in order to use the matcher of“is”,”notNullValue”,”equalTo” and so on.

Step 3: Use hamcrest feature in our test script

 Introduction on Using Hamcrest Unit Test Framework

Following are the link on the syntax of asserThat function of hamcrest.

http://langgufu.iteye.com/blog/1893927

-----------------------------------------TheEnd--------------------------------------

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

东城区| 大渡口区| 玉山县| 周宁县| 阳新县| 建始县| 苍山县| 龙江县| 页游| 河源市| 永修县| 库尔勒市| 宜川县| 柞水县| 铁岭市| 万宁市| 镇宁| 高安市| 新津县| 剑河县| 襄垣县| 遵化市| 集安市| 乐清市| 南平市| 巢湖市| 项城市| 罗山县| 陈巴尔虎旗| 佛坪县| 贺州市| 安仁县| 武汉市| 鹤岗市| 思南县| 北流市| 顺昌县| 白银市| 大新县| 定襄县| 宾川县|