GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — it's very difficult to unit test with non-publicly-constructable data types · Issue #2769 · googleapis/google-cloud-java Closed Labels api: bigqueryIssues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue. DescriptionI am writing a small wrapper around google-cloud-bigquery that is illustrated by public long getNumRows(BigQuery bq, String dataset, String table) { return bq.getTable(dataset, table) .<StandardTableDefinition>getDefinition() .getNumRows(); } When I go to unit test this method I have to mock out This less usable than the underlying generated library where I can construct all the model objects directly. I have had this issue with other google-cloud-java components as well. I understand the desire to minimize the public API for maintainability, but some kind of testing visibility for constructing ADTs would help a lot. Activity
MetadataMetadataAssigneesLabelsapi: bigqueryIssues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |