@Test public void testNewFromList() throws Exception { Job job1 = createNiceMock(Job.class); replay(job1); JaxbJobList jobList = new JaxbJobList(Stream.$(job1).toList()); assertEquals(1, jobList.getJobs().size()); }
public List<JaxbJob> getJobs() { return jobs; }
JaxbJobList { public List<JaxbJob> getJobs() { return jobs; } }
JaxbJobList { public List<JaxbJob> getJobs() { return jobs; } JaxbJobList();  JaxbJobList(JaxbJob job);  JaxbJobList(Collection<? extends Job> jobs); }
JaxbJobList { public List<JaxbJob> getJobs() { return jobs; } JaxbJobList();  JaxbJobList(JaxbJob job);  JaxbJobList(Collection<? extends Job> jobs); List<JaxbJob> getJobs(); void setJobs(List<Job> jobs); void add(JaxbJob job); }
JaxbJobList { public List<JaxbJob> getJobs() { return jobs; } JaxbJobList();  JaxbJobList(JaxbJob job);  JaxbJobList(Collection<? extends Job> jobs); List<JaxbJob> getJobs(); void setJobs(List<Job> jobs); void add(JaxbJob job);  }