Skip to main content

Spring Testing

  • Chapter
  • First Online:
Book cover Pro Spring 5
  • 2202 Accesses

Abstract

When developing applications for enterprise use, testing is an important way to ensure that the completed application performs as expected and fulfills all kinds of requirements (architectural, security, user requirements, and so on). Every time a change is made, you should ensure that the changes that were introduced don’t impact the existing logic. Maintaining an ongoing build and test environment is critical for ensuring high-quality applications. Reproducible tests with high coverage for all your code allow you to deploy new applications and changes to applications with a high level of confidence. In an enterprise development environment, there are many kinds of testing that target each layer within an enterprise application, and each kind of testing has its own characteristics and requirements. In this chapter, we discuss the basic concepts involved in the testing of various application layers, especially in the testing of Spring-powered applications. We also cover the ways in which Spring makes implementing the test cases of various layers easier for developers. Specifically, this chapter covers the following topics

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Another alternative is EasyMock: http://easymock.org/ .

  2. 2.

    This is a quote from the official site.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Iuliana Cosmina, Rob Harrop, Chris Schaefer, and Clarence Ho

About this chapter

Cite this chapter

Cosmina, I., Harrop, R., Schaefer, C., Ho, C. (2017). Spring Testing. In: Pro Spring 5. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2808-1_13

Download citation

Publish with us

Policies and ethics