- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 168字
- 2021-06-24 18:31:42
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "In this test, we are defining that RuntimeException is expected when the ticTacToe.play(5, 2) method is invoked."
A block of code is set as follows:
public class FooTest { @Rule public ExpectedException exception = ExpectedException.none();
@Test public void whenDoFooThenThrowRuntimeException() { Foo foo = new Foo(); exception.expect(RuntimeException.class); foo.doFoo(); } }
Any command-line input or output is written as follows:
$ gradle test
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "IntelliJ IDEA provides a very good Gradle tasks model that can be reached by clicking on View|Tool Windows|Gradle."
Warnings or important notes appear like this.
Tips and tricks appear like this.
推薦閱讀
- TypeScript Blueprints
- 簡(jiǎn)單高效LATEX
- 從0到1:HTML+CSS快速上手
- 區(qū)塊鏈:以太坊DApp開(kāi)發(fā)實(shí)戰(zhàn)
- Mastering Kali Linux for Web Penetration Testing
- Java Web開(kāi)發(fā)詳解
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- Android項(xiàng)目實(shí)戰(zhàn):手機(jī)安全衛(wèi)士開(kāi)發(fā)案例解析
- Python項(xiàng)目實(shí)戰(zhàn)從入門(mén)到精通
- OpenCV 3計(jì)算機(jī)視覺(jué):Python語(yǔ)言實(shí)現(xiàn)(原書(shū)第2版)
- 3D Printing Designs:The Sun Puzzle
- 軟硬件綜合系統(tǒng)軟件需求建模及可靠性綜合試驗(yàn)、分析、評(píng)價(jià)技術(shù)
- Visual C#(學(xué)習(xí)筆記)
- Continuous Integration,Delivery,and Deployment
- Mastering Rust