public void testSave() throws Exception { int len = expRepo.size(); assertEquals(2, len); final Expense exp3 = new Expense(PropertyType.CAR, 236, "euro"); exp3.setUserId("test"); expRepo.save(exp3); int len1 = expRepo.size(); assertEquals(3, len1); }
public void testFindAll() throws Exception { int len1 = expRepo.size(); assertEquals(2, len1); }
public void testDelete() throws Exception { expRepo.delete(exp2.getId()); int len1 = expRepo.size(); assertEquals(1, len1); }