You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug/1556 Next Quarter generation does not work (#1597)
* fix(cronjob): Generate new Quarter at the start of the month rather then the end #1556
* fix: Calculation of the first month of the quarter should be dependent on the business year start #1556
* style: run formatter
* test: Change test variables to match new logic
* test: Change test variables to match new logic in persitence service
* refactor: Change the logic of the quarter generation of cron-job so it is more readable #1556
* test: Add and update persistence and business service tests for Quarter Generation #1556
* style: Run formatter
* test: Add tests for the double generation if the current quarter is missing #1556
* style: Run formatter #1556
* refactor: Removed useless schema passing
* test: add mocks for save that now returns the generated quarter #1556
* refactor: put long if condition into helper
@ParameterizedTest(name = "Should not generate a new quarter on scheduledGenerationQuarters() when it is not the last month of the quarter such as {0}")
111
-
@ValueSource(ints = { 1, 2, 4, 5, 7, 8, 10, 11 })
110
+
@ParameterizedTest(name = "Should not generate a new quarter on scheduledGenerationQuarters() when it is not the first month of the quarter such as {0}")
@ParameterizedTest(name = "Should generate both new quarter if the current one does not exist on scheduledGenerationQuarters() when it is the first month of the quarter such as {0}")
@ParameterizedTest(name = "Should generate quarters correctly on scheduledGenerationQuarters() with quarter start {0}, format {1}, current month of year {2} and label {3}")
@ParameterizedTest(name = "Should generate quarter with Cron-Job when current month is the last month of the current quarter (Month: {0}, Quarter: {1})")
@ParameterizedTest(name = "Should generate quarter with Cron-Job when current month is the first month of the current quarter (Month: {0}, Quarter: {1})")
0 commit comments