use of com.google.cloud.bigquery.Dataset in project google-cloud-java by GoogleCloudPlatform.
the class ITBigQueryTest method testGetDataset.
@Test
public void testGetDataset() {
Dataset dataset = bigquery.getDataset(DATASET);
assertEquals(bigquery.getOptions().getProjectId(), dataset.getDatasetId().getProject());
assertEquals(DATASET, dataset.getDatasetId().getDataset());
assertEquals(DESCRIPTION, dataset.getDescription());
assertEquals(LABELS, dataset.getLabels());
assertNotNull(dataset.getAcl());
assertNotNull(dataset.getEtag());
assertNotNull(dataset.getGeneratedId());
assertNotNull(dataset.getLastModified());
assertNotNull(dataset.getSelfLink());
}
Aggregations