@Override public Menu getSaveAndNewEntity() { Menu entity = new Menu(); entity.setUid(UUIDUtil.newUUID()); entity.setName("hello 2"); return entity; }
@Before public void init() { if (!isInited) { isInited = true; Menu menu = new Menu(); menu.setUid(UUIDUtil.newUUID()); menu.setName("hello"); jpaDataAccessService.saveEntity(menu); menuUid = menu.getUid(); } }
@Override public Menu getUpdateEntity() { Menu entity = new Menu(); entity.setName("hello changed"); return entity; }