@Test public void testTerminate() { assertFalse(post.getEmployees(now).isEmpty()); employee.terminate(now); assertTrue(post.getEmployees(now).isEmpty()); }
public Post createPost(String name, String sn, Job job, Organization organization, Date date) { Post result = new Post(name, sn, job, organization); result.setCreateDate(date); result.save(); return result; }