GoogleCloudPlatform / GoogleCloudPlatform/google-cloud-eclipse

Rework creating mock IGoogleApiFactory

Open
#2,396 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.