use of com.stripe.model.CustomerCollection in project stripe-java by stripe.
the class StripeResponseTest method testResponseIncludedList.
@Test
public void testResponseIncludedList() throws AuthenticationException, InvalidRequestException, APIException, APIConnectionException, CardException {
CustomerCollection cusCollection = Customer.list(new HashMap<String, Object>());
StripeResponse resp = cusCollection.getLastResponse();
assertThat(resp, instanceOf(StripeResponse.class));
assertEquals(200, resp.code());
assertTrue(resp.requestId().startsWith("req_"));
assertTrue(resp.body().length() > 0);
}
Aggregations