2015-03-03 18:38:01 +08:00
|
|
|
[[testing]]
|
|
|
|
= Testing
|
2023-04-19 23:26:17 +08:00
|
|
|
:page-section-summary-toc: 1
|
2015-03-03 18:38:01 +08:00
|
|
|
|
2018-08-30 23:29:17 +08:00
|
|
|
This chapter covers Spring's support for integration testing and best practices for unit
|
2018-09-18 22:42:09 +08:00
|
|
|
testing. The Spring team advocates test-driven development (TDD). The Spring team has
|
|
|
|
found that the correct use of inversion of control (IoC) certainly does make both unit
|
|
|
|
and integration testing easier (in that the presence of setter methods and appropriate
|
2015-03-03 18:38:01 +08:00
|
|
|
constructors on classes makes them easier to wire together in a test without having to
|
2018-08-30 23:29:17 +08:00
|
|
|
set up service locator registries and similar structures).
|
2015-03-03 18:38:01 +08:00
|
|
|
|
2017-10-19 02:24:17 +08:00
|
|
|
|
|
|
|
|
2018-10-25 21:15:58 +08:00
|
|
|
|
2017-10-19 02:24:17 +08:00
|
|
|
|
2015-03-03 18:38:01 +08:00
|
|
|
|
2017-10-19 02:24:17 +08:00
|
|
|
|
|
|
|
|
2018-10-25 21:15:58 +08:00
|
|
|
|
2017-10-19 02:24:17 +08:00
|
|
|
|