When do you use Spring in testing?
-
Stress Testing
-
Regression Testing
-
Integration Testing
-
None
C
Correct answer
Explanation
Spring is primarily used in integration testing to test how different components work together. It allows you to load the application context, wire beans together, and test interactions between components in a near-production environment. Stress testing focuses on system limits, and regression testing checks for bugs in existing functionality.