@Test(expected = PagSeguroLibException.class) public void shouldThrowsErrorLibOnRegister() throws Exception { when(httpClient.execute(any(HttpMethod.class), anyString(), anyMap(), any(HttpRequestBody.class))).thenThrow(new IOException()); checkoutsResource.register(checkoutRegistration); }
public RegisteredCheckout register(Builder<CheckoutRegistration> checkoutRegistrationBuilder) { return register(checkoutRegistrationBuilder.build()); }
CheckoutsResource { public RegisteredCheckout register(Builder<CheckoutRegistration> checkoutRegistrationBuilder) { return register(checkoutRegistrationBuilder.build()); } }
CheckoutsResource { public RegisteredCheckout register(Builder<CheckoutRegistration> checkoutRegistrationBuilder) { return register(checkoutRegistrationBuilder.build()); } CheckoutsResource(PagSeguro pagSeguroAPI, HttpClient httpClient); }
CheckoutsResource { public RegisteredCheckout register(Builder<CheckoutRegistration> checkoutRegistrationBuilder) { return register(checkoutRegistrationBuilder.build()); } CheckoutsResource(PagSeguro pagSeguroAPI, HttpClient httpClient); RegisteredCheckout register(Builder<CheckoutRegistration> checkoutRegistrationBuilder); RegisteredCheckout register(CheckoutRegistration checkoutRegistration); }
CheckoutsResource { public RegisteredCheckout register(Builder<CheckoutRegistration> checkoutRegistrationBuilder) { return register(checkoutRegistrationBuilder.build()); } CheckoutsResource(PagSeguro pagSeguroAPI, HttpClient httpClient); RegisteredCheckout register(Builder<CheckoutRegistration> checkoutRegistrationBuilder); RegisteredCheckout register(CheckoutRegistration checkoutRegistration);  }