- Mastering Unit Testing Using Mockito and JUnit
- Sujoy Acharya
- 118字
- 2021-12-08 12:38:33
Chapter 1. JUnit 4 – a Total Recall
This chapter covers the unit testing concept, the JUnit 4 framework, the Eclipse setup, and the advanced features of JUnit 4. In JUnit 4, you will be introduced to the JUnit framework briefly to get you up and running. We will discuss the concept surrounding JUnit essentials, annotations, assertion, the @RunWith
annotation, and exception handling so that you have an adequate background on how JUnit 4 works. Advanced readers can skip to the next section.
In JUnit 4++, we will explore the advanced topics of JUnit 4 and deep dive into parameterized tests, Hamcrest matchers and assertThat
, the assumption, theory, timeout, categories, rules, test suites, and tests order.
推薦閱讀
- 云計算與大數據應用
- 商業分析思維與實踐:用數據分析解決商業問題
- 區塊鏈通俗讀本
- 深入淺出MySQL:數據庫開發、優化與管理維護(第2版)
- Dependency Injection with AngularJS
- SQL優化最佳實踐:構建高效率Oracle數據庫的方法與技巧
- Hands-On Mathematics for Deep Learning
- Proxmox VE超融合集群實踐真傳
- Hadoop大數據開發案例教程與項目實戰(在線實驗+在線自測)
- 淘寶、天貓電商數據分析與挖掘實戰(第2版)
- 跨領域信息交換方法與技術(第二版)
- Chef Essentials
- Web Services Testing with soapUI
- 企業主數據管理實務
- 大數據分析:R基礎及應用