JUnit tests for POJOs

后端 未结 17 1660
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:15

    I use IntelliJ as an IDE, and it pretty much writes trivial POJO's for me - certainly the constructor and getters/settors. I don't see any point in unit testing this since any bugs will more than likely be in the test code I write.

提交回复
热议问题