- 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.
- MySQL高可用解決方案:從主從復(fù)制到InnoDB Cluster架構(gòu)
- 有趣的二進(jìn)制:軟件安全與逆向分析
- Test-Driven Development with Mockito
- Game Development with Swift
- 分布式數(shù)據(jù)庫(kù)系統(tǒng):大數(shù)據(jù)時(shí)代新型數(shù)據(jù)庫(kù)技術(shù)(第3版)
- Lean Mobile App Development
- OracleDBA實(shí)戰(zhàn)攻略:運(yùn)維管理、診斷優(yōu)化、高可用與最佳實(shí)踐
- 大數(shù)據(jù)治理與安全:從理論到開(kāi)源實(shí)踐
- 重復(fù)數(shù)據(jù)刪除技術(shù):面向大數(shù)據(jù)管理的縮減技術(shù)
- 爬蟲(chóng)實(shí)戰(zhàn):從數(shù)據(jù)到產(chǎn)品
- 數(shù)據(jù)庫(kù)應(yīng)用系統(tǒng)技術(shù)
- 利用Python進(jìn)行數(shù)據(jù)分析(原書(shū)第2版)
- 改進(jìn)的群智能算法及其應(yīng)用
- Unity Game Development Blueprints
- 大數(shù)據(jù)測(cè)試技術(shù):數(shù)據(jù)采集、分析與測(cè)試實(shí)踐(在線(xiàn)實(shí)驗(yàn)+在線(xiàn)自測(cè))