What are the Test Fixtures used in the Spring Framework build and how are they used?

2.4k views Asked by At

I read spring source code to learn unit test. but confuse about testFixtures usage? enter image description here

1

There are 1 answers

1
Sam Brannen On

Test Fixtures is a feature of Gradle that the Spring Framework uses in its build. See Using Test Fixtures in the Gradle user guide for details.

Basically, the test fixtures are sample domain entities and sample Spring-based components that we (the Spring Team) use within our own test suite. We also place some of our common base classes for tests in "test fixtures". By making such things "test fixtures", we can reuse them across multiple modules within the test suite for the core Spring Framework.