Skip to Main Content
JUnit in Action, Third Edition
book

JUnit in Action, Third Edition

by Catalin Tudose
January 2021
Intermediate to advanced content levelIntermediate to advanced
560 pages
15h 13m
English
Manning Publications
Content preview from JUnit in Action, Third Edition

16 Testing Spring applications

This chapter covers

  • Understanding dependency injection
  • Building and testing a Spring application
  • Using SpringExtension for JUnit Jupiter
  • Testing Spring application features with JUnit 5

“Dependency Injection” is a 25-dollar term for a 5-cent concept.

--James Shore

Spring is a lightweight--but at the same time flexible and universal--open source set of frameworks for creating Java applications. It is not dedicated to any particular layer, which means it can be used at the level of any layer of a Java application. This chapter will focus on the basis of Spring: the dependency injection (or inversion of control) pattern; and how to test core Spring applications with the help of JUnit 5.

16.1 Introducing the Spring ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Test-Driven Java Development, Second Edition - Second Edition

Test-Driven Java Development, Second Edition - Second Edition

Viktor Farcic, Alex Garcia

Publisher Resources

ISBN: 9781617297045Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link