3 ms·
The context can be reused between tests. If you're not storing data in beans (which you normally shouldn't), this works well. There is a bit of subtlety in that
by twic 10y ago
The context can be reused between tests. If you're not storing data in beans (which you normally shouldn't), this works well. There is a bit of subtlety in that the framework might have to create multiple context for different configurations, but each of them is reusable.
Running a single test is a bit of pain, but running the whole suite is not a lot slower than if it didn't use Spring.