|
30 | 30 | /**
|
31 | 31 | * DisputeApiImpl test methods.
|
32 | 32 | */
|
33 |
| -@Ignore("Comment this line out to allow DisputeApi unit tests run") |
| 33 | + |
34 | 34 | public class DisputeApiImplTest extends BaseTest {
|
35 | 35 |
|
36 | 36 | private List<Dispute> clientDisputes = null;
|
@@ -74,6 +74,11 @@ public void getTransactions() throws Exception {
|
74 | 74 |
|
75 | 75 | assertNotNull(result);
|
76 | 76 | assertFalse(result.isEmpty());
|
| 77 | + |
| 78 | + for (Transaction t : result) { |
| 79 | + assertNotNull(t.getStatus()); |
| 80 | + assertNotEquals(TransactionStatus.NotSpecified, t.getStatus()); |
| 81 | + } |
77 | 82 | }
|
78 | 83 |
|
79 | 84 | @Test
|
@@ -114,6 +119,12 @@ public void getDisputesForUser() throws Exception {
|
114 | 119 |
|
115 | 120 | assertNotNull(result);
|
116 | 121 | assertFalse(result.isEmpty());
|
| 122 | + |
| 123 | + assertFalse(transactions.isEmpty()); |
| 124 | + for (Transaction t : transactions) { |
| 125 | + assertNotNull(t.getStatus()); |
| 126 | + assertNotEquals(TransactionStatus.NotSpecified, t.getStatus()); |
| 127 | + } |
117 | 128 | }
|
118 | 129 |
|
119 | 130 | @Test
|
@@ -169,6 +180,7 @@ public void createDisputePage() throws Exception {
|
169 | 180 | }
|
170 | 181 |
|
171 | 182 | @Test
|
| 183 | + @Ignore("Cannot be tested. Needs manual creation of dispute on API side") |
172 | 184 | public void contestDispute() throws Exception {
|
173 | 185 | Dispute notContestedDispute = null;
|
174 | 186 |
|
@@ -211,6 +223,7 @@ public void saveTag() throws Exception {
|
211 | 223 | }
|
212 | 224 |
|
213 | 225 | @Test
|
| 226 | + @Ignore("Cannot be tested. Needs manual creation of dispute on API side") |
214 | 227 | public void closeDispute() throws Exception {
|
215 | 228 | Dispute dispute = null;
|
216 | 229 |
|
@@ -328,6 +341,7 @@ public void getDocumentsForClient() throws Exception {
|
328 | 341 | }
|
329 | 342 |
|
330 | 343 | @Test
|
| 344 | + @Ignore("Cannot be tested. Needs manual creation of dispute on API side") |
331 | 345 | public void submitDisputeDocument() throws Exception {
|
332 | 346 | Dispute dispute = null;
|
333 | 347 | DisputeDocument disputeDocument = null;
|
@@ -507,6 +521,7 @@ public void getFilteredDisputeDocuments() throws Exception {
|
507 | 521 | }
|
508 | 522 |
|
509 | 523 | @Test
|
| 524 | + @Ignore("Cannot be tested. Needs manual creation of dispute on API side") |
510 | 525 | public void resubmitDispute() throws Exception {
|
511 | 526 | Dispute dispute = null;
|
512 | 527 |
|
|
0 commit comments