@Test public void testListJobsWithSelectedFields() { Page<Job> jobs = bigquery.listJobs(JobListOption.fields(JobField.USER_EMAIL)); for (Job job : jobs.values()) { assertNotNull(job.jobId()); assertNotNull(job.status()); assertNotNull(job.userEmail()); assertNull(job.statistics()); assertNull(job.id()); } }
@Test public void testListJobs() { Page<Job> jobs = bigquery.listJobs(); for (Job job : jobs.values()) { assertNotNull(job.jobId()); assertNotNull(job.statistics()); assertNotNull(job.status()); assertNotNull(job.userEmail()); assertNotNull(job.id()); } }