-
Notifications
You must be signed in to change notification settings - Fork 6
Update dependencies and fix test date validation #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Update project dependencies: - Spring Boot: 4.0.0 → 4.0.1 - ds-spring-user-framework: 4.0.0 → 4.0.1 - com.github.ben-manes.versions: 0.52.0 → 0.53.0 - mariadb-java-client: 3.5.5 → 3.5.7 - guava: 33.4.8-jre → 33.5.0-jre - h2: 2.3.232 → 2.4.240 - selenide: 7.10.0 → 7.13.0 - webdrivermanager: 6.3.1 → 6.3.3 Also removes deprecated bootJar launchScript configuration that was removed in Spring Boot 4.
Replace hardcoded date strings with dynamically generated future dates to prevent test failures when dates pass. The tests were using hardcoded date "2025-12-31" which failed validation against @FutureOrPresent constraint after that date passed. Added a futureDate() helper method that returns LocalDate.now().plusYears(1) to ensure dates are always valid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates project dependencies to their latest versions and fixes test failures caused by hardcoded dates that no longer satisfy @FutureOrPresent validation constraints.
Key Changes:
- Upgrades 8 project dependencies including Spring Boot (4.0.0 → 4.0.1) and related libraries
- Replaces hardcoded date "2025-12-31" with a dynamic
futureDate()helper method in test cases - Removes empty
bootJarconfiguration block
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/test/java/com/digitalsanctuary/spring/user/concurrent/AdminRoleAccessControlTest.java |
Adds futureDate() helper method and replaces 4 instances of hardcoded "2025-12-31" with dynamic future date calculation to prevent test failures |
build.gradle |
Updates 8 dependency versions (Spring Boot, ds-spring-user-framework, MariaDB, Guava, H2, Selenide, WebDriverManager, versions plugin) and removes empty bootJar block |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Code Review SummaryOverall, this is a well-executed PR that addresses both dependency maintenance and a test sustainability issue. The changes are clean, focused, and follow best practices. ✅ Strengths1. Excellent Test Fix (
|
Summary
Changes
Dependency Updates
Test Fix
Replaced hardcoded date
2025-12-31inAdminRoleAccessControlTestwith a dynamicfutureDate()helper that returnsLocalDate.now().plusYears(1). This prevents test failures when hardcoded dates expire.Test plan
./gradlew test)