When validating a Java module that replaced COBOL with embedded DB2 SQL, what does a DB2 mock framework provide?
Select an answer to reveal the explanation.
Short Explanation
A DB2 mock framework gives you simulated JDBC responses that mimic DB2 query results, so you can test Java DB2 access logic without a live DB2 connection. It intercepts JDBC calls and returns predefined result sets, letting you validate the module in isolation and speed up local development and CI pipelines.
Full Explanation
A DB2 mock framework provides simulated JDBC responses that mimic DB2 query results without a live DB2 connection. It intercepts JDBC calls and returns predefined result sets, isolating Java DB2 logic and speeding CI. SQL translation to H2, a full DB2 for z/OS Docker subsystem, and lock-contention monitoring are not mocks.