uber / rides-java-sdk

Uber Rides Java SDK (beta)
https://developer.uber.com/docs
MIT License
104 stars 57 forks source link

Allow to mock API responses instead of using sandbox #26

Closed pjagielski closed 7 years ago

pjagielski commented 7 years ago

Hi,

Motivation

We extensively use Rides API and have about 30 integration tests with various API interactions. When using sandbox our build took about 8 minutes to finish, so we decided to mock Rides API with WireMock. Now the build takes less than 3 minutes ;)

Details

Instead of setting Environment we added a baseUrl property which is used to build endpointHost if present.