Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apache/incubator-kie-kogito-runtimes
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b87a52f2f5080726d6e96c8cd1dddae046c27059
Choose a base ref
..
head repository: apache/incubator-kie-kogito-runtimes
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1ef03a8cd7956ab17ef2b4c2a51381750362c67b
Choose a head ref
Showing with 2 additions and 1 deletion.
  1. +2 −1 jbpm/jbpm-flow/src/test/java/org/jbpm/process/core/timer/BusinessCalendarImplTest.java
Original file line number Diff line number Diff line change
@@ -225,6 +225,7 @@ void rollCalendarToNightlyWorkingHour() {
void rollCalendarAfterHolidaysWithoutYearRollover() {
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.DAY_OF_YEAR, 360);
calendar.set(Calendar.YEAR, 2025);
Instant currentInstant = calendar.toInstant();

Instant startHolidayInstant = currentInstant.minus(2, DAYS);
@@ -235,7 +236,7 @@ void rollCalendarAfterHolidaysWithoutYearRollover() {

BusinessCalendarImpl.rollCalendarAfterHolidays(calendar, holidays, weekendDays, false);

int expectedDayOfYear = 360 + 4 + 1;
int expectedDayOfYear = 360 + 4 + 1; //last day of the year, as it is not leap year
assertThat(calendar.get(Calendar.DAY_OF_YEAR)).isEqualTo(expectedDayOfYear);
}