Hi Shyam,

2014-02-06 12:54 GMT+01:00 Sha <shatestt...@gmail.com>:

> Hi Lukas,
>   Today  I had given a partial demo of my POC  to my management about
> jOOQ. They are quite impressed with features and ease it provides.
>

That's great news! Thanks for the feedback!


> Apart from what I have show, they are interested for MockDataProvider
> feature provided by jOOQ.
>
> It is understood that ,some time back they got some pdf from jOOQ's
> providers regarding the Mock data feature which generates the test data
> i.e. mock data.
>
> Can you give any url link or a doc which throws more light on the same
> feature and how to implement for my code ?
> Not much information is provided in the user guide.
>

Yes, you're right. There's not much more in the manual (or in the blog)
about the MockDataProvider:
- http://www.jooq.org/doc/3.2/manual/tools/jdbc-mocking/
- http://blog.jooq.org/2013/02/20/easy-mocking-of-your-database/

This feature has been originally requested by Aaron Digulla in this thread:
- https://groups.google.com/forum/#!msg/jooq-user/OQzuxbqk-w8/MbtmKAnZ2h4J

When you mock your database for unit testing, people usually implement all
of the JDBC API, which is quite cumbersome. The idea behind the
MockDatabase is that you only implement a single method to simulate almost
all database interactions.

It is currently in a draft version, and there are no high-priority plans to
further enhance it, unless we get more real-world use-cases from customers.
I'm personally not that big of a fan of unit testing and mocking database
interaction, as it is very hard to cover all the complexity. Personally, I
prefer to write integration tests against a real test database with actual
data.

Let me know if you have any concrete use-cases that you might want to have
covered.

Best Regards,
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to