Suggest a JPA Unit test framework

后端 未结 3 2016
梦如初夏
梦如初夏 2021-02-06 07:29

How to unit test JPA code? is there any way to generate Unit Test case itself?

Note: I am lazy and new to Unit Test code.

3条回答
  •  囚心锁ツ
    2021-02-06 08:09

    recently I faced a problem of testing:

    1. business logic operating on JPA Entities
    2. complex JPQL queries mixed with business logic.

    I used JPA-Unit and it solved all my problems.

提交回复
热议问题