JUnit tests for POJOs

后端 未结 17 1972
Happy的楠姐
Happy的楠姐 2021-02-02 07:56

I work on a project where we have to create unit tests for all of our simple beans (POJOs). Is there any point to creating a unit test for POJOs if all they consist of is gette

17条回答
  •  爱一瞬间的悲伤
    2021-02-02 08:28

    Unit Test code you want to know works (for the situations tested of course). Don't unit test code you only want to be kind of sure works.

    I can't think of much I only want to be kind of sure about.

提交回复
热议问题