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

Rework creating mock IGoogleApiFactory

Open briandealwis opened this issue 8 years ago • 0 comments

RunOptionsDefaultsComponentTest and MiniSelectorTest, and possibly others, mock up instances of IGoogleApiFactory for tests. Wiring up the responses is a bit tricky, and we're repeating code. And some of the services are inter-related, such as the Services Management and Cloud Resource Manager services, where they deal with the same projects. We should consolidate this information into a single mock factory, perhaps using a builder pattern.

briandealwis avatar Sep 15 '17 17:09 briandealwis