CardClientTest

9

tests

0

failures

0

ignored

0.075s

duration

100%

successful

Tests

Test Duration Result
shouldCallCardServiceForNewCard() 0.009s passed
shouldCallDepositFunds() 0.010s passed
shouldCallGetBalance() 0.007s passed
shouldThrowExceptionWhenCardServiceReturnsUnexpectedStatusCodeForNewCard() 0.014s passed
shouldThrowExceptionWhenDepositFundsReturnsUnexpectedResponse() 0.007s passed
shouldThrowExceptionWhenDepositFundsThrowsException() 0.009s passed
shouldThrowExceptionWhenGetBalanceReturnsUnexpectedResponse() 0.005s passed
shouldThrowExceptionWhenGetBalanceThrowsException() 0.007s passed
shouldThrowExceptionWhenNewCardServiceThrowsException() 0.007s passed

Standard output

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.2.0.RELEASE)

12:25:17.587 [Test worker] ERROR u.g.d.h.claimant.service.CardClient - Exception caught trying to post to http://localhost:8140/v1/cards/myCardId/deposit
12:25:17.595 [Test worker] ERROR u.g.d.h.claimant.service.CardClient - Exception caught trying to get the card balance at http://localhost:8140/v1/cards/myCardId/balance
12:25:17.609 [Test worker] ERROR u.g.d.h.claimant.service.CardClient - Expecting 201 CREATED response from the card service api, instead received 204 NO_CONTENT with response body null
12:25:17.634 [Test worker] ERROR u.g.d.h.claimant.service.CardClient - Expecting 200 OK response from the card service api, instead received 204 NO_CONTENT with response body null
12:25:17.643 [Test worker] ERROR u.g.d.h.claimant.service.CardClient - Expecting 200 OK response from the card service api, instead received 204 NO_CONTENT with response body null
12:25:17.650 [Test worker] ERROR u.g.d.h.claimant.service.CardClient - Exception caught trying to post to http://localhost:8140/v1/cards