Skip to content

Commit 12969b0

Browse files
Fix formatting
1 parent 211b286 commit 12969b0

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

src/test/java/com/stripe/functional/ErrorTest.java

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public class ErrorTest extends BaseStripeTest {
2424
// ==================== V1 Error Tests ====================
2525

2626
@Test
27-
public void testV1Error400InvalidRequest() throws StripeException, IOException, InterruptedException {
27+
public void testV1Error400InvalidRequest()
28+
throws StripeException, IOException, InterruptedException {
2829
InvalidRequestException exception = null;
2930
Mockito.doAnswer(
3031
(Answer<StripeResponse>)
@@ -127,8 +128,7 @@ public void testV1Error402CardError() throws StripeException, IOException, Inter
127128
}
128129

129130
@Test
130-
public void testV1Error403Permission()
131-
throws StripeException, IOException, InterruptedException {
131+
public void testV1Error403Permission() throws StripeException, IOException, InterruptedException {
132132
PermissionException exception = null;
133133
Mockito.doAnswer(
134134
(Answer<StripeResponse>)
@@ -177,8 +177,7 @@ public void testV1Error404InvalidRequest()
177177
}
178178

179179
@Test
180-
public void testV1Error429RateLimit()
181-
throws StripeException, IOException, InterruptedException {
180+
public void testV1Error429RateLimit() throws StripeException, IOException, InterruptedException {
182181
RateLimitException exception = null;
183182
Mockito.doAnswer(
184183
(Answer<StripeResponse>)
@@ -279,7 +278,10 @@ public void testV2InvalidErrorEmpty() throws StripeException, IOException, Inter
279278
assertInstanceOf(ApiException.class, exception);
280279
assertNull(exception.getStripeError());
281280
assertNull(exception.getUserMessage());
282-
assertTrue(exception.getMessage().contains("Invalid response object from API: {}. (HTTP response code was 404)"));
281+
assertTrue(
282+
exception
283+
.getMessage()
284+
.contains("Invalid response object from API: {}. (HTTP response code was 404)"));
283285
}
284286

285287
@Test
@@ -374,8 +376,7 @@ public void testV2Error401Authentication()
374376
}
375377

376378
@Test
377-
public void testV2Error402CardError()
378-
throws StripeException, IOException, InterruptedException {
379+
public void testV2Error402CardError() throws StripeException, IOException, InterruptedException {
379380
CardException exception = null;
380381
@Cleanup MockWebServer server = new MockWebServer();
381382
Mockito.doAnswer(
@@ -405,8 +406,7 @@ public void testV2Error402CardError()
405406
}
406407

407408
@Test
408-
public void testV2Error403Permission()
409-
throws StripeException, IOException, InterruptedException {
409+
public void testV2Error403Permission() throws StripeException, IOException, InterruptedException {
410410
PermissionException exception = null;
411411
@Cleanup MockWebServer server = new MockWebServer();
412412
Mockito.doAnswer(
@@ -434,8 +434,7 @@ public void testV2Error403Permission()
434434
}
435435

436436
@Test
437-
public void testV2Error429RateLimit()
438-
throws StripeException, IOException, InterruptedException {
437+
public void testV2Error429RateLimit() throws StripeException, IOException, InterruptedException {
439438
RateLimitException exception = null;
440439
@Cleanup MockWebServer server = new MockWebServer();
441440
Mockito.doAnswer(
@@ -463,8 +462,7 @@ public void testV2Error429RateLimit()
463462
}
464463

465464
@Test
466-
public void testV2Error500ApiError()
467-
throws StripeException, IOException, InterruptedException {
465+
public void testV2Error500ApiError() throws StripeException, IOException, InterruptedException {
468466
ApiException exception = null;
469467
@Cleanup MockWebServer server = new MockWebServer();
470468
Mockito.doAnswer(

0 commit comments

Comments
 (0)