Skip to content

Commit 4a396fb

Browse files
committed
Add test
1 parent 261a7e7 commit 4a396fb

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ before_install:
1818
env:
1919
global:
2020
# If changing this number, please also change it in `BaseStripeTest.java`.
21-
- STRIPE_MOCK_VERSION=0.99.0
21+
- STRIPE_MOCK_VERSION=0.101.0
2222

2323
matrix:
2424
include:

Diff for: src/test/java/com/stripe/BaseStripeTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
public class BaseStripeTest {
3535
// If changing this number, please also change it in `.travis.yml`.
36-
private static final String MOCK_MINIMUM_VERSION = "0.99.0";
36+
private static final String MOCK_MINIMUM_VERSION = "0.101.0";
3737

3838
private static String port;
3939

Diff for: src/test/java/com/stripe/functional/PayoutTest.java

+11
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,15 @@ public void testCancel() throws StripeException {
7777
verifyRequest(
7878
ApiResource.RequestMethod.POST, String.format("/v1/payouts/%s/cancel", resource.getId()));
7979
}
80+
81+
@Test
82+
public void testReverse() throws StripeException {
83+
final Payout resource = getPayoutFixture();
84+
85+
final Payout reverseledPayout = resource.reverse();
86+
87+
assertNotNull(reverseledPayout);
88+
verifyRequest(
89+
ApiResource.RequestMethod.POST, String.format("/v1/payouts/%s/reverse", resource.getId()));
90+
}
8091
}

0 commit comments

Comments
 (0)