Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test(groups = {"regress", "PartialRepayment"},
- description = "createPartialRepayment. Поля запроса. PartialRepayment. Некорректный формат dateTimeReport")
- @TmsLink("TC-19492")
- public void createPartialRepaymentPartialRepaymentIncorrectFormatDateTimeReport() throws IOException {
- Application request = getSuccessApplication()
- .setDateTimeReport(INCORRECT_FORMAT_DATE);
- Response response = partialRepaymentServiceSteps.createPartialRepayment(partialRepaymentServiceConfig.getValidContractNumber(), TOMORROW_DATE, USER_NAME, request);
- commonSteps.assertFieldErrorProtocolIncorrect(response);
- }
- @Test(groups = {"regress", "PartialRepayment"},
- description = "createPartialRepayment. Поля запроса. PartialRepayment. Некорректный формат closeOperatingDay")
- @TmsLink("TC-19492")
- public void createPartialRepaymentPartialRepaymentIncorrectFormatCloseOperatingDay() throws IOException {
- Application request = getSuccessApplication()
- .setCloseOperatingDay(INCORRECT_FORMAT_DATE);
- Response response = partialRepaymentServiceSteps.createPartialRepayment(partialRepaymentServiceConfig.getValidContractNumber(), TOMORROW_DATE, USER_NAME, request);
- commonSteps.assertFieldErrorProtocolIncorrect(response);
- }
- @Test(groups = {"regress", "PartialRepayment"},
- description = "createPartialRepayment. Поля запроса. PartialRepayment. Некорректный формат partialRepaymentDate")
- @TmsLink("TC-19492")
- public void createPartialRepaymentPartialRepaymentIncorrectFormatPartialRepaymentDate() throws IOException {
- Application request = getSuccessApplication()
- .setPartialRepaymentDate(INCORRECT_FORMAT_DATE);
- Response response = partialRepaymentServiceSteps.createPartialRepayment(partialRepaymentServiceConfig.getValidContractNumber(), TOMORROW_DATE, USER_NAME, request);
- commonSteps.assertFieldErrorProtocolIncorrect(response);
- }
- private Application getSuccessApplication() {
- return new Application()
- .setDateTimeReport(DATE_TIME_REPORT)
- .setUserName(USER_NAME)
- .setContractNumber(partialRepaymentServiceConfig.getValidContractNumber())
- .setPartialRepaymentDate(TOMORROW_DATE)
- .setCloseOperatingDay(TOMORROW_DATE)
- .setUsingAccountBalance(Boolean.FALSE)
- .setPartialRepaymentAmount(PARTIAL_REPAYMENT_AMOUNT)
- .setCheckingBalanceOnRequestDate(FLOAT)
- .setCheckingBalanceOnExecutionDate(FLOAT)
- .setTotalAmount(FLOAT)
- .setPlannedRepaymentAmount(FLOAT)
- .setPlannedNextPayment(FLOAT)
- .setCalculationStatus(CALCULATION_STATUS);
- }
Add Comment
Please, Sign In to add comment