How to simulate a DB for testing (Java)?

后端 未结 14 1396
走了就别回头了
走了就别回头了 2020-11-30 19:15

I\'m programming in Java and my applications are making a lot of use of DB. Hence, it is important for me to be able to test my DB usage easily.
What DB tests are all ab

14条回答
  •  借酒劲吻你
    2020-11-30 19:34

    Java comes with Java DB.

    That said, I would advise against using a different type of DB than what you use in production unless you go through an ORM layer. Otherwise, your SQL might not be as cross-platform as you think.

    Also check out DbUnit

提交回复
热议问题