- 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.
推薦閱讀
- 企業(yè)數(shù)字化創(chuàng)新引擎:企業(yè)級PaaS平臺HZERO
- App+軟件+游戲+網(wǎng)站界面設(shè)計教程
- Creating Dynamic UIs with Android Fragments(Second Edition)
- 數(shù)據(jù)革命:大數(shù)據(jù)價值實(shí)現(xiàn)方法、技術(shù)與案例
- 智能數(shù)據(jù)分析:入門、實(shí)戰(zhàn)與平臺構(gòu)建
- Python金融實(shí)戰(zhàn)
- gnuplot Cookbook
- SQL應(yīng)用及誤區(qū)分析
- Instant Autodesk AutoCAD 2014 Customization with .NET
- 區(qū)域云計算和大數(shù)據(jù)產(chǎn)業(yè)發(fā)展:浙江樣板
- Access數(shù)據(jù)庫開發(fā)從入門到精通
- Hands-On System Programming with C++
- 大數(shù)據(jù)時代系列(套裝9冊)
- 精通Neo4j
- Machine Learning for Mobile