:只包含属性,除了GET/SET和关系之外,没有任何方法。* @return list of all existing users. fun findAll(): List<User>以及一项服务:
@Service根据我在Spring库指南上所读到的内容,您已经获得了默认的CRUD方法save, read, update, delete..以前,我会在said Model中保留使用我的模型的方法,但是,
我必须为我的小组正在开发的一些类编写单元测试。这些类相当简单,我不知道如何最好地测试它们。private boolean StoreObject(MyObject myObject) //Store the object in a database}
因此,我的问题是如何测试MyObjectRegistry.StoreObjects和MyDataSetWrapper.StoreObjects