JUnit tests for POJOs

后端 未结 17 1674
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:25

    There is a open source utility http://meanbean.sourceforge.net/ that allows you to test POJO's. There is a also a page that describes the merits/questions that one might have on what this utility offers and why it should be used.

    I have never tired it myself (yet), but it's been recommend to me.

提交回复
热议问题