Unit Test On INSERT/UPDATE queries

6 views
Skip to first unread message

Debapriya Patra

unread,
Aug 20, 2019, 4:52:31 PM8/20/19
to jOOQ User Group
Hi,

I am able to write unit test cases for my get JOOQ queries by defining Mock data in .txt file but not able to do it for the INSERT/UPDATE queries.

Sometimes back i have asked this question in another JOOQ forum where i got a reply saying its not supported yet. 

I was just wondering like is there a way to write unit test for those INSERT/UPDATE now or not.

If it's possible then can someone help me getting a sample working example where we have the unit test for insert and update queries ?

Thanks,
Deba

Lukas Eder

unread,
Aug 21, 2019, 4:27:29 AM8/21/19
to jOOQ User Group
Hi Deba,

Thanks for your message. This is now implemented for jOOQ 3.12 and it got backported to 3.11.8:

Examples can be found here:

I hope this helps,
Lukas 

--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/6957cc0c-e1b1-436e-a711-0e6bb161fd5d%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages