Skip to content

Commit

Permalink
[MODFIN-381] - Implement endpoint to process FY finance bulk update
Browse files Browse the repository at this point in the history
  • Loading branch information
azizbekxm committed Dec 5, 2024
1 parent 6c21f37 commit 670f006
Showing 1 changed file with 0 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,61 +174,6 @@ void negative_testPutFinanceData_FailureInProcessAllocationTransaction(VertxTest
}));
}

// @Test
// void shouldProcessLogsWithCompletedStatus(VertxTestContext vertxTestContext) {
// FyFinanceDataCollection financeDataCollection = new FyFinanceDataCollection();
// when(fundUpdateLogService.createFundUpdateLog(any(), any())).thenReturn(succeededFuture());
//
// financeDataService.processLogs(financeDataCollection, requestContextMock, FundUpdateLog.Status.COMPLETED);
// verify(fundUpdateLogService).createFundUpdateLog(any(), eq(requestContextMock));
// vertxTestContext.completeNow();
// }
//
// @Test
// void shouldProcessLogsWithErrorStatus(VertxTestContext vertxTestContext) {
// FyFinanceDataCollection financeDataCollection = new FyFinanceDataCollection();
// when(fundUpdateLogService.createFundUpdateLog(any(), any())).thenReturn(succeededFuture());
//
// financeDataService.processLogs(financeDataCollection, requestContextMock, FundUpdateLog.Status.ERROR);
// verify(fundUpdateLogService).createFundUpdateLog(any(), eq(requestContextMock));
// vertxTestContext.completeNow();
// }



// @Test
// void testValidateFinanceData_ValidData(VertxTestContext vertxTestContext) {
// FyFinanceData data = createValidFyFinanceData();
//
// vertxTestContext.verify(() -> {
// financeDataService.validateFinanceData(data);
// vertxTestContext.completeNow();
// });
// }
//
// @Test
// void testValidateFinanceData_InvalidAllocationChange(VertxTestContext vertxTestContext) {
// FyFinanceData data = createValidFyFinanceData();
// data.setBudgetInitialAllocation(100.0);
// data.setBudgetAllocationChange(-150.0);
//
// vertxTestContext.verify(() -> {
// assertThrows(IllegalArgumentException.class, () -> financeDataService.validateFinanceData(data));
// vertxTestContext.completeNow();
// });
// }
//
// @Test
// void testValidateFinanceDataFields_MissingRequiredField(VertxTestContext vertxTestContext) {
// FyFinanceData data = createValidFyFinanceData();
// data.setFundId(null);
//
// vertxTestContext.verify(() -> {
// assertThrows(IllegalArgumentException.class, () -> financeDataService.validateFinanceDataFields(data));
// vertxTestContext.completeNow();
// });
// }

@Test
void testCreateAllocationTransaction(VertxTestContext vertxTestContext) {
FyFinanceData data = createValidFyFinanceData();
Expand Down

0 comments on commit 670f006

Please sign in to comment.