Skip to content

Commit

Permalink
Add functional classes to SerializationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Feb 3, 2016
1 parent 94533b2 commit 9428a03
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ public class SerializationTest {
.jobCompleted(true)
.result(QUERY_RESULT)
.build();
private static final BigQuery BIGQUERY = BigQueryOptions.defaultInstance().service();
private static final Dataset DATASET =
new Dataset(BIGQUERY, new DatasetInfo.BuilderImpl(DATASET_INFO));
private static final Table TABLE = new Table(BIGQUERY, new TableInfo.BuilderImpl(TABLE_INFO));
private static final Job JOB = new Job(BIGQUERY, new JobInfo.BuilderImpl(JOB_INFO));

@Test
public void testServiceOptions() throws Exception {
Expand Down Expand Up @@ -256,7 +261,7 @@ public void testModelAndRequests() throws Exception {
BigQuery.DatasetOption.fields(), BigQuery.DatasetDeleteOption.deleteContents(),
BigQuery.DatasetListOption.all(), BigQuery.TableOption.fields(),
BigQuery.TableListOption.maxResults(42L), BigQuery.JobOption.fields(),
BigQuery.JobListOption.allUsers()};
BigQuery.JobListOption.allUsers(), DATASET, TABLE, JOB};
for (Serializable obj : objects) {
Object copy = serializeAndDeserialize(obj);
assertEquals(obj, obj);
Expand Down

0 comments on commit 9428a03

Please sign in to comment.