diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e412a2ab..33c07f6c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,5 @@ updates: directory: "/" schedule: interval: "monthly" + cooldown: + default-days: 7 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6728c5c4..dbfbf336 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: matrix-build: strategy: matrix: - java: [25] + java: [25, 27] os: ['ubuntu-latest', 'windows-latest'] # 'macos-latest' has issues with UI tests env: DEFAULT_JAVA: 25 @@ -28,21 +28,21 @@ jobs: steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 with: fetch-depth: 0 persist-credentials: false - - uses: actions/setup-java@v5 + - uses: actions/setup-java@v6 with: distribution: 'temurin' java-version: ${{ matrix.java }} - name: Setup Gradle - uses: gradle/actions/setup-gradle@v6 + uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0-rc.1 - name: Cache SonarQube packages - uses: actions/cache@v5 + uses: actions/cache@v6 if: ${{ env.DEFAULT_JAVA == matrix.java && env.DEFAULT_OS == matrix.os }} with: path: ~/.sonar/cache @@ -64,13 +64,13 @@ jobs: product/build/libs-checksums/* if-no-files-found: error - - name: Archive test reports for ${{ matrix.os }} using Java ${{ matrix.java }} + - name: Archive reports for ${{ matrix.os }} using Java ${{ matrix.java }} uses: actions/upload-artifact@v7 if: ${{ always() }} with: name: test-reports-${{ matrix.os }}-java-${{ matrix.java }} retention-days: 5 - path: "**/build/reports/tests/*/**" + path: "**/build/reports/*/**" if-no-files-found: error - name: Sonar analysis @@ -100,16 +100,18 @@ jobs: ossindex: runs-on: ubuntu-latest + permissions: + contents: read steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 with: persist-credentials: false - - uses: actions/setup-java@v5 + - uses: actions/setup-java@v6 with: distribution: temurin java-version: 25 - name: Setup Gradle - uses: gradle/actions/setup-gradle@v6 + uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0-rc.1 - name: Ossindex run: ./gradlew ossIndexAudit --no-parallel --warning-mode all --info env: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f3b1c4aa..8fac17b3 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -35,16 +35,16 @@ jobs: build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too. steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: persist-credentials: false - - uses: actions/setup-java@v5 + - uses: actions/setup-java@v6 with: distribution: 'temurin' java-version: 25 - name: Setup Gradle - uses: gradle/actions/setup-gradle@v6 + uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0-rc.1 - name: Initialize CodeQL uses: github/codeql-action/init@v4 diff --git a/.github/workflows/dependency-submission.yml b/.github/workflows/dependency-submission.yml index 6b07db41..da6cf284 100644 --- a/.github/workflows/dependency-submission.yml +++ b/.github/workflows/dependency-submission.yml @@ -13,13 +13,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: persist-credentials: false - name: Setup Java - uses: actions/setup-java@v5 + uses: actions/setup-java@v6 with: distribution: 'temurin' java-version: 25 - name: Generate and submit dependency graph - uses: gradle/actions/dependency-submission@v6 + uses: gradle/actions/dependency-submission@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0-rc.1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4e66e6f5..f48716dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,25 +24,26 @@ jobs: shell: bash steps: - name: Checkout the repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: persist-credentials: false - name: Fail if not running on main branch if: ${{ github.ref != 'refs/heads/main' }} - uses: actions/github-script@v9 - with: - script: | - core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main') + run: | + echo "Not running on main branch, github.ref is $GITHUB_REF. Please start this workflow only on main" + exit 1 + env: + GITHUB_REF: ${{ github.ref }} - name: Set up Java - uses: actions/setup-java@v5 + uses: actions/setup-java@v6 with: distribution: "temurin" java-version: 25 - name: Setup Gradle - uses: gradle/actions/setup-gradle@v6 + uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0-rc.1 - name: Build run: ./gradlew build jpackage --info --warning-mode all -PskipFlakyTests=true @@ -80,24 +81,25 @@ jobs: contents: write # Required for creating GitHub release steps: - name: Checkout the repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: persist-credentials: true - name: Set up Java - uses: actions/setup-java@v5 + uses: actions/setup-java@v6 with: distribution: "temurin" java-version: 25 - name: Setup Gradle - uses: gradle/actions/setup-gradle@v6 + uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0-rc.1 - name: Fail if not running on main branch if: ${{ github.ref != 'refs/heads/main' }} - uses: actions/github-script@v9 - with: - script: | - core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main') + run: | + echo "Not running on main branch, github.ref is $GITHUB_REF. Please start this workflow only on main" + exit 1 + env: + GITHUB_REF: ${{ github.ref }} - name: Publish to Central Repository if: ${{ ! inputs.skip-maven-central }} diff --git a/.github/zizmor.yml b/.github/zizmor.yml new file mode 100644 index 00000000..c167b5a8 --- /dev/null +++ b/.github/zizmor.yml @@ -0,0 +1,7 @@ +rules: + unpinned-uses: + config: + policies: + "actions/*": ref-pin + "github/codeql-action/*": ref-pin + "*": hash-pin diff --git a/.vscode/settings.json b/.vscode/settings.json index 21ee427e..2746ad64 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,6 +5,7 @@ "source.fixAll": "explicit" }, "java.codeGeneration.useBlocks": true, + // Too many false positives "java.compile.nullAnalysis.mode": "disabled", "java.configuration.updateBuildConfiguration": "automatic", "java.test.config": { @@ -25,4 +26,4 @@ "connectionId": "itsallcode", "projectKey": "white-rabbit" }, -} \ No newline at end of file +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 627d64f6..b498966d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.11.0] - unreleased +See [Release](https://github.com/itsallcode/white-rabbit/releases/tag/v1.11.0) / [Milestone](https://github.com/itsallcode/white-rabbit/milestone/13?closed=1) + +* Upgrade dependencies (PR [#309](https://github.com/itsallcode/white-rabbit/pull/309)) + * Removed jansi due to vulnerability CVE-2026-8484 + ## [1.10.0] - 2026-05-25 See [Release](https://github.com/itsallcode/white-rabbit/releases/tag/v1.10.0) / [Milestone](https://github.com/itsallcode/white-rabbit/milestone/12?closed=1) diff --git a/build.gradle b/build.gradle index 1c47eaf9..5f58b3ba 100644 --- a/build.gradle +++ b/build.gradle @@ -1,14 +1,14 @@ plugins { id 'eclipse' - id "org.sonarqube" version "7.3.0.8198" + id "org.sonarqube" version "7.5.0.8588" id "org.jetbrains.gradle.plugin.idea-ext" version "1.4.1" - id 'com.gradleup.shadow' version '9.4.1' apply false + id 'com.gradleup.shadow' version '9.6.1' apply false id "com.moowork.node" version "1.3.1" apply false - id "com.github.ben-manes.versions" version "0.54.0" - id "org.panteleyev.jpackageplugin" version "2.0.1" apply false + id "io.github.ben-manes.versions" version "0.66.0" + id "org.panteleyev.jpackageplugin" version "2.1.0" apply false id "org.gradle.crypto.checksum" version "1.4.0" apply false id "io.github.gradle-nexus.publish-plugin" version "2.0.0" - id 'org.sonatype.gradle.plugins.scan' version '3.1.5' + id 'org.sonatype.gradle.plugins.scan' version '4.1.1-01' } version = "1.10.0" diff --git a/docs/developer_guide.md b/docs/developer_guide.md index d5301fd9..b4467f0c 100644 --- a/docs/developer_guide.md +++ b/docs/developer_guide.md @@ -59,7 +59,7 @@ Run a single test: ### Check that dependencies are up-to-date ```sh -./gradlew dependencyUpdates --no-parallel +./gradlew dependencyUpdates ``` ### Check for Vulnerable Dependencies @@ -85,6 +85,15 @@ Precondition for Windows: Install the [WiX Toolset](https://wixtoolset.org) and ./gradlew jpackage --info ``` +### Running GitHub Actions Linter + +```sh +# Run linter +zizmor . --gh-token=$(gh auth token) +# Automatically fix issues +zizmor . --gh-token=$(gh auth token) --fix=all +``` + ### Creating a Release #### Preparations diff --git a/gradle.properties b/gradle.properties index f97ebb7d..602aabb2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,5 @@ org.gradle.parallel=true +org.gradle.caching=true +org.gradle.configuration-cache=true +org.gradle.configuration-cache.problems=warn +org.gradle.configuration-cache.parallel=true diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index b1b8ef56..9fa7f288 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index df6a6ad7..91c4fc64 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.2-bin.zip networkTimeout=10000 retries=0 retryBackOffMs=500 diff --git a/gradlew b/gradlew index b9bb139f..249efbb0 100755 --- a/gradlew +++ b/gradlew @@ -20,7 +20,7 @@ ############################################################################## # -# Gradle start up script for POSIX generated by Gradle. +# gradlew start up script for POSIX generated by Gradle. # # Important for running: # @@ -29,7 +29,7 @@ # bash, then to run this script, type that shell name before the whole # command line, like: # -# ksh Gradle +# ksh gradlew # # Busybox and similar reduced shells will NOT work, because this script # requires all of these POSIX shell features: diff --git a/gradlew.bat b/gradlew.bat index aa5f10b0..03754c4c 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -19,13 +19,40 @@ @if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem -@rem Gradle startup script for Windows +@rem gradlew startup script for Windows @rem @rem ########################################################################## @rem Set local scope for the variables, and ensure extensions are enabled setlocal EnableExtensions +@rem Catch executions from older scripts and ensure they exit cleanly. +@rem This can be removed once we can be reasonably confident that few people +@rem will be migrating directly to this new wrapper. +goto afterSafetyNet +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +goto exitWithErrorLevel +:afterSafetyNet + set DIRNAME=%~dp0 if "%DIRNAME%"=="" set DIRNAME=. @rem This is normally unused @@ -45,13 +72,14 @@ set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if %ERRORLEVEL% equ 0 goto execute -echo. 1>&2 -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 -echo. 1>&2 -echo Please set the JAVA_HOME variable in your environment to match the 1>&2 -echo location of your Java installation. 1>&2 +1>&2 echo. +1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +1>&2 echo. +1>&2 echo Please set the JAVA_HOME variable in your environment to match the +1>&2 echo location of your Java installation. "%COMSPEC%" /c exit 1 +goto exitWithErrorLevel :findJavaFromJavaHome set JAVA_HOME=%JAVA_HOME:"=% @@ -59,24 +87,26 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. 1>&2 -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 -echo. 1>&2 -echo Please set the JAVA_HOME variable in your environment to match the 1>&2 -echo location of your Java installation. 1>&2 +1>&2 echo. +1>&2 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +1>&2 echo. +1>&2 echo Please set the JAVA_HOME variable in your environment to match the +1>&2 echo location of your Java installation. "%COMSPEC%" /c exit 1 +goto exitWithErrorLevel :execute @rem Setup the command line -@rem Execute Gradle +@rem Execute gradlew @rem endlocal doesn't take effect until after the line is parsed and variables are expanded @rem which allows us to clear the local environment before executing the java command -endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel +endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel & goto exitWithErrorLevel +@rem This label must not be changed. We rely on old scripts being able to jump to this point. :exitWithErrorLevel @rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts "%COMSPEC%" /c exit %ERRORLEVEL% diff --git a/jfxui/build.gradle b/jfxui/build.gradle index 5bed85ba..b5c9a769 100644 --- a/jfxui/build.gradle +++ b/jfxui/build.gradle @@ -36,7 +36,6 @@ dependencies { runtimeOnly libs.log4j.core runtimeOnly libs.log4j.jul - runtimeOnly libs.jansi testImplementation libs.testfx testImplementation libs.bundles.testUtils diff --git a/jfxui/src/main/java/org/itsallcode/whiterabbit/jfxui/App.java b/jfxui/src/main/java/org/itsallcode/whiterabbit/jfxui/App.java index 65dc0a2e..db637f4d 100644 --- a/jfxui/src/main/java/org/itsallcode/whiterabbit/jfxui/App.java +++ b/jfxui/src/main/java/org/itsallcode/whiterabbit/jfxui/App.java @@ -10,7 +10,6 @@ public class App public static void main(final String[] args) { System.setProperty("javafx.preloader", SplashScreenLoader.class.getName()); - System.setProperty("log4j.skipJansi", "false"); System.setProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager"); DesktopIntegration.getInstance().register(); diff --git a/jfxui/src/main/java/org/itsallcode/whiterabbit/jfxui/ui/MonthlyProjectReportViewer.java b/jfxui/src/main/java/org/itsallcode/whiterabbit/jfxui/ui/MonthlyProjectReportViewer.java index 363b61bb..75a48238 100644 --- a/jfxui/src/main/java/org/itsallcode/whiterabbit/jfxui/ui/MonthlyProjectReportViewer.java +++ b/jfxui/src/main/java/org/itsallcode/whiterabbit/jfxui/ui/MonthlyProjectReportViewer.java @@ -47,9 +47,9 @@ public void show() { final TableView treeTable = createTreeTable(); updateTable(treeTable); - final Node previousMonthButton = UiWidget.button("prev-month-button", "< Previous Month", + final Node previousMonthButton = UiWidget.button("monthly-report-prev-month-button", "< Previous Month", e -> gotoMonth(treeTable, -1)); - final Node nextMonthButton = UiWidget.button("next-month-button", "Next Month >", + final Node nextMonthButton = UiWidget.button("monthly-report-next-month-button", "Next Month >", e -> gotoMonth(treeTable, +1)); reportWindow.show(treeTable, previousMonthButton, nextMonthButton); uiState.register(treeTable); diff --git a/jfxui/src/main/resources/log4j2.xml b/jfxui/src/main/resources/log4j2.xml index 6875ebda..2bc590ab 100644 --- a/jfxui/src/main/resources/log4j2.xml +++ b/jfxui/src/main/resources/log4j2.xml @@ -2,7 +2,7 @@ - dayTable = app().genericDayTable(); @@ -229,7 +226,6 @@ void weekendsAreHighlightedAsWeekend() } @Test - @Tag(JunitTags.FLAKY) void weekendsAreHighlightedAsNotWorking() { final JavaFxTable dayTable = app().genericDayTable(); @@ -272,7 +268,6 @@ void higlightedWeekends() } @Test - @Tag(JunitTags.FLAKY) void higlightedWeekendsUpdatedWhenMonthChanges() { final DayTable dayTable = app().dayTable(); diff --git a/jfxui/src/uiTest/java/org/itsallcode/whiterabbit/jfxui/MonthlyProjectReportTest.java b/jfxui/src/uiTest/java/org/itsallcode/whiterabbit/jfxui/MonthlyProjectReportTest.java index 23437159..3133d208 100644 --- a/jfxui/src/uiTest/java/org/itsallcode/whiterabbit/jfxui/MonthlyProjectReportTest.java +++ b/jfxui/src/uiTest/java/org/itsallcode/whiterabbit/jfxui/MonthlyProjectReportTest.java @@ -6,10 +6,8 @@ import java.util.Locale; import org.itsallcode.whiterabbit.api.model.Project; -import org.itsallcode.whiterabbit.jfxui.testutil.JunitTags; import org.itsallcode.whiterabbit.jfxui.testutil.model.MonthlyProjectReportWindow; import org.itsallcode.whiterabbit.logic.service.project.ProjectImpl; -import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.testfx.api.FxRobot; @@ -77,7 +75,6 @@ void gotoPreviousMonth() } @Test - @Tag(JunitTags.FLAKY) // Second month change test is not working void gotoNextMonth() { time().tickSeparateMinutes(3); diff --git a/jfxui/src/uiTest/java/org/itsallcode/whiterabbit/jfxui/testutil/model/JavaFxTable.java b/jfxui/src/uiTest/java/org/itsallcode/whiterabbit/jfxui/testutil/model/JavaFxTable.java index 4e08a2eb..7c6d7327 100644 --- a/jfxui/src/uiTest/java/org/itsallcode/whiterabbit/jfxui/testutil/model/JavaFxTable.java +++ b/jfxui/src/uiTest/java/org/itsallcode/whiterabbit/jfxui/testutil/model/JavaFxTable.java @@ -5,7 +5,6 @@ import java.util.ArrayList; import java.util.List; -import java.util.stream.Stream; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -36,7 +35,8 @@ private JavaFxTable(final FxRobot robot, final TableView table) static JavaFxTable find(final FxRobot robot, final String query, final Class rowType) { - return new JavaFxTable<>(robot, robot.lookup(query).queryTableView()); + final TableView table = JavaFxUtil.runOnFxApplicationThread(() -> robot.lookup(query).queryTableView()); + return new JavaFxTable<>(robot, table); } public JavaFxTableRow row(final int rowIndex) @@ -147,10 +147,10 @@ public void assertDoesNotHavePseudoClass(final String expectedClass) .as("Pseudo classes of row " + rowIndex + " with name " + expectedClass).isEmpty(); } - private Stream getPseudoClass(final String pseudoClassName) + private List getPseudoClass(final String pseudoClassName) { - return tableRow().getPseudoClassStates().stream() - .filter(pseudoClass -> pseudoClass.getPseudoClassName().equals(pseudoClassName)); + return JavaFxUtil.runOnFxApplicationThread(() -> tableRow().getPseudoClassStates().stream() + .filter(pseudoClass -> pseudoClass.getPseudoClassName().equals(pseudoClassName)).toList()); } public JavaFxTable.JavaFxTableRow click() diff --git a/jfxui/src/uiTest/java/org/itsallcode/whiterabbit/jfxui/testutil/model/MonthlyProjectReportWindow.java b/jfxui/src/uiTest/java/org/itsallcode/whiterabbit/jfxui/testutil/model/MonthlyProjectReportWindow.java index fdd76415..7a2c3fc0 100644 --- a/jfxui/src/uiTest/java/org/itsallcode/whiterabbit/jfxui/testutil/model/MonthlyProjectReportWindow.java +++ b/jfxui/src/uiTest/java/org/itsallcode/whiterabbit/jfxui/testutil/model/MonthlyProjectReportWindow.java @@ -44,18 +44,18 @@ public void closeViaEscKey() public void gotoPreviousMonth() { - robot.clickOn("#prev-month-button"); + robot.clickOn("#monthly-report-prev-month-button"); } public void gotoNextMonth() { - robot.clickOn("#next-month-button"); + robot.clickOn("#monthly-report-next-month-button"); } public MonthlyProjectReportWindow assertWindowTitle(final String expectedTitle) { - final String title = ((Stage) window).getTitle(); - TestUtil.retryAssertion(Duration.ofSeconds(5), () -> assertThat(title).isEqualTo(expectedTitle)); + TestUtil.retryAssertion(Duration.ofSeconds(5), + () -> assertThat(((Stage) window).getTitle()).isEqualTo(expectedTitle)); return this; } diff --git a/settings.gradle b/settings.gradle index b3fc4f5c..c898959f 100644 --- a/settings.gradle +++ b/settings.gradle @@ -20,15 +20,15 @@ dependencyResolutionManagement { } versionCatalogs { libs { - version('junitJupiter', '6.1.0') - version('mockito', '5.23.0') - version('log4j', '2.26.0') - version('javafx', '27-ea+17') + version('junitJupiter', '6.1.3') + version('mockito', '5.24.0') + version('log4j', '2.26.1') + version('javafx', '28-ea+12') library('junitParams', 'org.junit.jupiter', 'junit-jupiter-params').versionRef('junitJupiter') library('assertj', 'org.assertj:assertj-core:3.27.7') library('junitPioneer', 'org.junit-pioneer:junit-pioneer:2.3.0') - library('equalsverifier', 'nl.jqno.equalsverifier:equalsverifier:4.5') + library('equalsverifier', 'nl.jqno.equalsverifier:equalsverifier:4.5.2') library('tostringverifier', 'com.jparams:to-string-verifier:1.4.8') library('hamcrest', 'org.hamcrest:hamcrest:3.0') library('mockito', 'org.mockito', 'mockito-core').versionRef('mockito') @@ -38,11 +38,10 @@ dependencyResolutionManagement { library('testfx', 'org.testfx:testfx-junit5:4.0.18') library('monocle', 'org.pdfsam:javafx-monocle:21') - library('jsonBindApi', 'jakarta.json.bind:jakarta.json.bind-api:3.0.1') - library('yasson', 'org.eclipse:yasson:3.0.4') + library('jsonBindApi', 'jakarta.json.bind:jakarta.json.bind-api:3.0.4') + library('yasson', 'org.eclipse:yasson:3.0.5') library('jdtAnnotations', 'org.eclipse.jdt:org.eclipse.jdt.annotation:2.4.100') - library('jansi', 'org.fusesource.jansi:jansi:2.4.3') library('log4j.api', 'org.apache.logging.log4j', 'log4j-api').versionRef('log4j') library('log4j.core', 'org.apache.logging.log4j', 'log4j-core').versionRef('log4j') library('log4j.jul', 'org.apache.logging.log4j', 'log4j-jul').versionRef('log4j')