Skip to content

Commit b5036a9

Browse files
authored
Merge pull request #185 from KyoriPowered/renovate/junit5-monorepo
chore(deps): Update dependency org.junit:junit-bom to v5.12.0
2 parents 45035f5 + 7b17c33 commit b5036a9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ immutables = "2.10.1"
99
indra = "3.1.3"
1010
jetbrainsAnnotations = "26.0.2"
1111
jgit = "6.10.0.+"
12-
junit = "5.11.4"
12+
junit = "5.12.0"
1313
kotlin = "1.9.25"
1414
mammoth = "1.4.0"
1515
spotless = "6.21.0"

indra-testlib/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dependencies {
2+
api platform(libs.junit.bom)
23
api libs.mammoth.test
34
}
45

indra-testlib/src/main/java/net/kyori/indra/test/FunctionalTestDisplayNameGenerator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of indra, licensed under the MIT License.
33
*
4-
* Copyright (c) 2020-2022 KyoriPowered
4+
* Copyright (c) 2020-2025 KyoriPowered
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -24,6 +24,7 @@
2424
package net.kyori.indra.test;
2525

2626
import java.lang.reflect.Method;
27+
import java.util.List;
2728
import org.junit.jupiter.api.DisplayNameGenerator;
2829

2930
/**
@@ -35,7 +36,7 @@
3536
*/
3637
public final class FunctionalTestDisplayNameGenerator extends DisplayNameGenerator.Standard {
3738
@Override
38-
public String generateDisplayNameForMethod(final Class<?> testClass, final Method testMethod) {
39+
public String generateDisplayNameForMethod(final List<Class<?>> enclosing, final Class<?> testClass, final Method testMethod) {
3940
final String name = testMethod.getName();
4041
if (name.startsWith("test") && name.length() > 5) {
4142
return Character.toLowerCase(name.charAt(4)) + name.substring(5);

0 commit comments

Comments
 (0)