Skip to content

Commit e731b56

Browse files
committed
Fix compilation and Gradle deprecation warnings
- Suppress removal warning on deprecated method test in UserEmailServiceTest (intentionally tests deprecated 4-param initiateAdminPasswordReset) - Fix Groovy space-assignment syntax for exceptionFormat in build.gradle (deprecated in Gradle 9, removed in Gradle 10)
1 parent 13cdef4 commit e731b56

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ test {
122122
testLogging {
123123
events "PASSED", "FAILED", "SKIPPED"
124124
if (isExplicitTest) {
125-
exceptionFormat "full"
125+
exceptionFormat = "full"
126126
showStandardStreams true
127127
} else {
128-
exceptionFormat "short"
128+
exceptionFormat = "short"
129129
}
130130
}
131131
}
@@ -164,10 +164,10 @@ def registerJdkTestTask(name, jdkVersion) {
164164
testLogging {
165165
events "PASSED", "FAILED", "SKIPPED"
166166
if (isExplicitTest) {
167-
exceptionFormat "full"
167+
exceptionFormat = "full"
168168
showStandardStreams true
169169
} else {
170-
exceptionFormat "short"
170+
exceptionFormat = "short"
171171
}
172172
}
173173
doFirst {

src/test/java/com/digitalsanctuary/spring/user/service/UserEmailServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ void setUpAdmin() {
693693

694694
@Test
695695
@DisplayName("deprecated method with adminIdentifier still works but ignores parameter")
696-
@SuppressWarnings("deprecation")
696+
@SuppressWarnings({"deprecation", "removal"})
697697
void deprecatedMethod_stillWorksButIgnoresAdminIdentifier() {
698698
// Given
699699
String ignoredAdminIdentifier = "ignored@example.com";

0 commit comments

Comments
 (0)