Search in sources :

Example 11 with Dataset

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());
}
Also used : Dataset(com.google.cloud.bigquery.Dataset) Test(org.junit.Test)

Aggregations

Dataset (com.google.cloud.bigquery.Dataset)11 Test (org.junit.Test)7 Builder (com.google.cloud.bigquery.Dataset.Builder)2 DatasetId (com.google.cloud.bigquery.DatasetId)2 DatasetInfo (com.google.cloud.bigquery.DatasetInfo)2 BigQueryException (com.google.cloud.bigquery.BigQueryException)1