- Mastering Unit Testing Using Mockito and JUnit
- Sujoy Acharya
- 143字
- 2021-12-08 12:38:35
Summary
This JUnit refresher chapter covers both the basic and advanced usage of JUnit.
The basic section covers the annotation based on JUnit 4 testing, assertion, the @RunWith annotation, exception handling, and the Eclipse setup for running the JUnit tests.
The advanced section covers parameterized tests, matchers and assertThat
, a custom lessThanOrEqual()
matcher, assumption, theory, a custom NumberSupplier class, timeout, categories, TestName, ExpectedException, TemporaryFolder, ErrorCollector, Verifier and TestWatcher rules, test suites, and executing tests in order.
By now, you will be able to write and execute JUnit 4 tests and be familiar with the advanced concepts of JUnit 4.
Chapter 2, Automating JUnit Tests, focuses on getting you quickly started with project-building tools and test automation. It provides an overview of continuous integration, explores the incremental Gradle build and Maven build lifecycle, Ant scripting, and Jenkins automation using Gradle, Maven, and Ant scripts.
- LibGDX Game Development Essentials
- Google Visualization API Essentials
- Python數據分析入門:從數據獲取到可視化
- 從0到1:數據分析師養成寶典
- 大數據可視化
- 使用GitOps實現Kubernetes的持續部署:模式、流程及工具
- 云計算與大數據應用
- Enterprise Integration with WSO2 ESB
- 區塊鏈通俗讀本
- Lean Mobile App Development
- 3D計算機視覺:原理、算法及應用
- 數據驅動設計:A/B測試提升用戶體驗
- 達夢數據庫性能優化
- 大數據營銷:如何讓營銷更具吸引力
- MySQL 8.x從入門到精通(視頻教學版)