Suggest a JPA Unit test framework

后端 未结 3 2017
梦如初夏
梦如初夏 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:14

    Check this out, Unitils. Here is a related discussion, with some example codes.

    Here is the example, showing DBUnit, Spring and OpenJPA together. You might not using all, but this can take you somewhere if you want to go with DBUnit, I believe.

提交回复
热议问题