As a result, you see lots of tests for things that are easy to test (equals and toString tend to pop out; see Listing 1), and the real logic of the unit under test is ignored.
结果,您会看到对容易测试(equals和toString往往很突出,参见清单1)的内容进行多次的测试,而被测单元的真正逻辑却被忽略了。
Default equals, hashcode, and toString methods are automatically generated.
自动生成默认的equals、hashcode和toString方法。
应用推荐