3334353637383940414243
Random rand = new Random(); put("name", String.valueOf(rand.nextInt())); put("surname", String.valueOf(rand.nextInt())); }} ); patient.save(); } } @Test public void testFindByPk() throws Exception{
4142434445464748495051
@Test public void testFindByPk() throws Exception{ Patient cur = (new Patient()).findByPk(1); cur.name="lah"; cur.save(); } @Test public void testSave() throws Exception{ Patient cur = new Patient();
5253545556575859606162
cur.name="loh"; cur.surname="lohov"; cur.patronymic="lohovich"; cur.birth_date=Long.valueOf((new Date()).getTime()).intValue(); cur.sex="male"; cur.save(); } @Test public void testSelectByValues() throws Exception { ArrayList<Patient> patients = (new Patient()).selectByValues(new HashMap<String,Object>());