@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(); } }