public void testUpdate() throws Exception { Expense u = expRepo.findOne(exp2.getId()); u.setValue(348); expRepo.update(u); Expense u1 = expRepo.findOne(u.getId()); assertEquals(u.getValue(), u1.getValue()); }
public void testFindOne() throws Exception { Expense u = expRepo.findOne(exp2.getId()); assertEquals(u, exp2); }