JobQueue extends BaseEntity { public int getProjectId() { return projectId; } JobQueue();  JobQueue(int projectId); int getProjectId(); void setProjectId(int projectId); Set<JobInstance> getJobs(); void addJob(JobInstance job); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); static final String PROPERTY_PROJECT_ID; static final String PROPERTY_JOBS; }
@Test public void testJobQueue_1() throws Exception { JobQueue result = new JobQueue(); assertNotNull(result); assertEquals(0, result.getProjectId()); assertEquals(0, result.getId()); assertEquals(null, result.getModified()); assertEquals(null, result.getCreated()); }
@Test public void testJobQueue_2() throws Exception { int projectId = 1; JobQueue result = new JobQueue(projectId); assertNotNull(result); assertEquals(1, result.getProjectId()); assertEquals(0, result.getId()); assertEquals(null, result.getModified()); assertEquals(null, result.getCreated()); }