google-cloud-java icon indicating copy to clipboard operation
google-cloud-java copied to clipboard

How can i mock or create a stub TableResult for unit test?

Open erdemontas opened this issue 2 years ago • 1 comments

I am trying to create an TableResult object for unit test but I couldn't do it. Do you have any example that I can refer to ?

erdemontas avatar Sep 01 '22 16:09 erdemontas

Hi @erdemontas, apologies for the delayed response. We were not actively monitoring this repo's issues.

Can you share some error messages or code snippets that show TableResult not being created/ instantiated/ used properly in your unit tests?

We do have docs on our GCP reference website that use TableResult (i.e. https://cloud.google.com/bigquery/docs/writing-results#writing_large_results_using_legacy_sql). Couldn't find any examples of it being used in unit tests though.

lqiu96 avatar Sep 15 '22 20:09 lqiu96