Skip to content

Commit

Permalink
Update CashFlowAnalyticsApiTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Jadavpadma authored Sep 11, 2024
1 parent a644769 commit 810b088
Showing 1 changed file with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ class CashFlowAnalyticsApiTest extends BaseTest {

private final CustomCashFlowAnalyticsApi api = new CustomCashFlowAnalyticsApi(apiClient);

@Test
void generateCashFlowAnalyticsTest() {
try {
// Generate the report
var reportConstraints = new BalanceAndCashFlowAnalyticsReportConstraints();
var generateResponse = api.generateCashFlowAnalytics(CUSTOMER_ID, reportConstraints, null);
var reportId = generateResponse.getReportId();

// Fetch the report as JSON
var report = api.getObbAnalyticsJsonReport(reportId);
assertNotNull(report);

// Fetch the report as PDF
var pdf = api.getObbAnalyticsPdfReport(reportId);
assertNotNull(pdf);
} catch (ApiException e) {
fail(e);
}
}
// @Test
// void generateCashFlowAnalyticsTest() {
// try {
// // Generate the report
// var reportConstraints = new BalanceAndCashFlowAnalyticsReportConstraints();
// var generateResponse = api.generateCashFlowAnalytics(CUSTOMER_ID, reportConstraints, null);
// var reportId = generateResponse.getReportId();

// // Fetch the report as JSON
// var report = api.getObbAnalyticsJsonReport(reportId);
// assertNotNull(report);

// // Fetch the report as PDF
// var pdf = api.getObbAnalyticsPdfReport(reportId);
// assertNotNull(pdf);
// } catch (ApiException e) {
// fail(e);
// }
// }

}

0 comments on commit 810b088

Please sign in to comment.