@Test public void test2Update() { try { org.junit.Assert.assertNotNull(map.get("AppMenusPrimaryKey")); AppMenus appmenus = appmenusRepository.findById((java.lang.String) map.get("AppMenusPrimaryKey")); appmenus.setAppId("76mXhpoAmba9jkRNbKuVyY02I4VlzIl8rGbldmUFgdFMyqJR5U"); appmenus.setAppType(1); appmenus.setMenuAccessRights(9); appmenus.setMenuAction("Db5GPlW2ZkygfTYJ0L45MMJD5C36i9oAi7Pwt0yNxXXvhet5o6"); appmenus.setMenuCommands("GYwQuAZlnguo6qLtLJwra68KoNoSKd8NkUagK4c7puijVx9zzH"); appmenus.setMenuIcon("SFQSmityAlSEHxtHKZbYZOsHO7QJ1f1sXUWn8ZeJVEbECV0Lq4"); appmenus.setMenuLabel("bmzXQJPzoIUBBoiBckVyuGfxFfuLmyq0nd9afO3VVDKy17cR4Y"); appmenus.setMenuTreeId("oQOA74mqUiwTSpKDaBN5uUNxLYHWLh9iIZmJltqZc4gJC8woG0"); appmenus.setRefObjectId("MO7NILk5vywswgChZLqNHQzBYXpmeMcBntqLkwsROnsuOsTpBl"); appmenus.setUiType("rMc"); appmenus.setVersionId(1); appmenus.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE); appmenusRepository.update(appmenus); } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) { org.junit.Assert.fail(e.getMessage()); } catch (java.lang.Exception e) { e.printStackTrace(); } }
@Test public void test3FindById() { try { org.junit.Assert.assertNotNull(map.get("AppMenusPrimaryKey")); appmenusRepository.findById((java.lang.String) map.get("AppMenusPrimaryKey")); } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) { org.junit.Assert.fail(e.getMessage()); } catch (Exception e) { e.printStackTrace(); } }