Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do anyone do test cases for pojos?

Is that needed?

like image 765
Ronald Avatar asked Dec 03 '22 09:12

Ronald


1 Answers

I write explicit tests for everything except simple getters and setters.

If the getter or setter only contains a return blah; or this.blah = blah; I don't think there is much value. The majority of times these are generated and I feel the time putting the tests together could be better spent elsewhere.

like image 52
RichH Avatar answered Dec 20 '22 18:12

RichH



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!