GoogleCloudPlatform / GoogleCloudPlatform/google-cloud-eclipse
Rework creating mock IGoogleApiFactory
Open
cleanup
priority: p4
testing
- Dominant language
- Java
- Stars
- 90
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
`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.
Contributor guide
Assessment
This issue has not been assessed yet.