- Mockito for Spring
- Sujoy Acharya
- 233字
- 2021-07-23 20:37:58
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The messaging module comes with key abstractions from the Spring Integration project such as Message
, MessageChannel
, and MessageHandler
to serve as a foundation for messaging-based applications."
A block of code is set as follows:
@Test public void currencyRoundsOff() throws Exception { assertNotNull(CurrencyFormatter.format(100.999)); assertTrue(CurrencyFormatter.format(100.999). contains("$")); assertEquals("$101.00", CurrencyFormatter.format(100.999)); }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
public class LocaleTest { private Locale defaultLocale; @Before public void setUp() { defaultLocale = Locale.getDefault(); Locale.setDefault(Locale.GERMANY); } @After public void restore() { Locale.setDefault(defaultLocale); } @Test public void currencyRoundsOff() throws Exception { assertEquals("$101.00", CurrencyFormatter.format(100.999)); } }
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Right-click on the project; a pop-up menu will appear. Expand the Build Path menu and click on the Configure Build Path menu item."
- Java EE框架整合開發(fā)入門到實戰(zhàn):Spring+Spring MVC+MyBatis(微課版)
- Oracle 12c中文版數(shù)據(jù)庫管理、應(yīng)用與開發(fā)實踐教程 (清華電腦學(xué)堂)
- Building Cross-Platform Desktop Applications with Electron
- Visual Basic程序設(shè)計實驗指導(dǎo)(第4版)
- Apex Design Patterns
- D3.js 4.x Data Visualization(Third Edition)
- Teaching with Google Classroom
- NoSQL數(shù)據(jù)庫原理
- Test-Driven Development with Django
- Building Microservices with .NET Core
- Java程序設(shè)計案例教程
- Oracle Data Guard 11gR2 Administration Beginner's Guide
- 黑莓(BlackBerry)開發(fā)從入門到精通
- C語言程序設(shè)計教程
- Elastix Unified Communications Server Cookbook