Skip to content

Commit 7b17c33

Browse files
committed
fix: stop using deprecated api
1 parent 0012eca commit 7b17c33

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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)