Hi Hagi,

The manual already shows how to do it "correctly", but maybe, you can show
exactly what you did? Otherwise, it will be difficult to spot what you
might have done wrong.

Thanks
Lukas

On Tue, Sep 14, 2021 at 7:17 AM Hagi Cohen <[email protected]> wrote:

> I work with Jooq on our system and I try mock DB (MYSQL) for testing.
>
> I using JDBC mocking for unit test  from your guide
> https://www.jooq.org/doc/3.7/manual/tools/jdbc-mocking/
>
> I didn’t understand and didn’t success get result for query as example:
> I add more records to results  but when run this query I get all results
> and look filter (where) not execute.
> Result<BookRecord> result =
> create.selectFrom(BOOK).where(BOOK.ID.eq(5)).fetch();
>
> Can you please help me how write the mock correctly so I get in the end
> results of query and not all records created.
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jooq-user/200930b2-d95c-4df5-90aa-0b7d3c179bb9n%40googlegroups.com
> <https://groups.google.com/d/msgid/jooq-user/200930b2-d95c-4df5-90aa-0b7d3c179bb9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/CAB4ELO7edhyh_qPY-Do4528N79J7M3djjcDqqE9BQWk4Ec5m3g%40mail.gmail.com.

Reply via email to