jOOQ is a Java framework to help you to write type-safe SQL DML (there is a similar framework named QueryDSL. But it is more powerful than jOOQ). And it shipped with a JDBC mock class collection. With these classes, you can mock JDBC API for your DB layer UT.
You can view the reference of jOOQ for details: JDBC mocking for unit testing.
No comments:
Post a Comment