Permalink
Switch branches/tags
Nothing to show
Commits on Aug 10, 2015
  1. Really ditch TestableClient

    Marco Schincaglia
    Marco Schincaglia committed Aug 10, 2015
Commits on Aug 9, 2015
  1. Docs for dummy servers

    Marco Schincaglia
    Marco Schincaglia committed Aug 9, 2015
  2. Update README.md

    Marco Schincaglia
    Marco Schincaglia committed Aug 9, 2015
Commits on Aug 8, 2015
  1. Create README.md

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
  2. Ditch TestableClient

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
  3. JsonApiClient GET is mocked to return body specified in test.

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
  4. Injecting JsonApiClient. JsonApiClient GET is mocked to return status…

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
    … specified in test
  5. Complete injection of ConfigurationService, removing Client.getPrices…

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
    …ApiEndpoint()
  6. Injecting configuration service. Removing Client.getApiToken()

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
  7. Import mockito

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
  8. Extracting getBody() and overriding that in TestableClient: test when…

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
    … api server returns successful response client returns successful RateResponse
  9. Test 2: testWhenApiServerReturnsUnauthorizedErrorClientReturnsWrongCr…

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
    …edentialsResponse
  10. First test complete: when api server returns generic error then Clien…

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
    …t returns null response
  11. Extract getStatus() and override it in TestableClient to simulate gen…

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
    …eric error. Test failing: null pointer exception in test assertion
  12. extract getApiToken() and override it in TestableClient. Test failing…

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
    …. Reason: jsonResponse.getStatus() UnknownHostException
  13. extract getPricesApiEndpoint and override it in TestableClient

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
  14. First unit test, failing. Reason: ConfigurationService.getPricesApiEn…

    Marco Schincaglia
    Marco Schincaglia committed Aug 8, 2015
    …dpoint()
  15. Initial state

    Marco Schincaglia
    Marco Schincaglia committed Jul 27, 2015