Book Image

Spring 5.0 Cookbook

By : Sherwin John C. Tragura
Book Image

Spring 5.0 Cookbook

By: Sherwin John C. Tragura

Overview of this book

The Spring framework has been the go-to framework for Java developers for quite some time. It enhances modularity, provides more readable code, and enables the developer to focus on developing the application while the underlying framework takes care of transaction APIs, remote APIs, JMX APIs, and JMS APIs. The upcoming version of the Spring Framework has a lot to offer, above and beyond the platform upgrade to Java 9, and this book will show you all you need to know to overcome common to advanced problems you might face. Each recipe will showcase some old and new issues and solutions, right from configuring Spring 5.0 container to testing its components. Most importantly, the book will highlight concurrent processes, asynchronous MVC and reactive programming using Reactor Core APIs. Aside from the core components, this book will also include integration of third-party technologies that are mostly needed in building enterprise applications. By the end of the book, the reader will not only be well versed with the essential concepts of Spring, but will also have mastered its latest features in a solution-oriented manner.
Table of Contents (20 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Chapter 13. Testing Spring 5 Components

It has been a long way getting to know the features and modules of Spring 5 Framework, through details of every ground-up implementation or through the Spring Boot 2.0 way of developing each of its components. We had categorized, scrutinized, and examined several Spring 5 major components already such services, @Repository transactions, view resolvers, and request handlers through sets of recipes we performed in the earlier chapters. We had arrived at several conclusions and recommendations already as to when, where, and how to use this newest installment of the Spring Framework to solve any real-world problems, be it in some experimental sample problem or for enterprise software solution.

This book will not end without providing the knowledge of how to perform different kind of tests to all recipes before deploying them to the production servers. This last chapter will enumerate the core concepts of context-dependent and standalone testing of Spring...