Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "1.0"
checkstyle = "10.21.1"
ideaExt = "1.1.9"
indra = "3.1.3"
junit = "5.11.4"
junit = "5.12.0"
mammoth = "1.4.0"
pebble = "3.2.2"
snakeyaml = "2.8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
package net.kyori.blossom.test;

import java.lang.reflect.Method;
import java.util.List;
import org.junit.jupiter.api.DisplayNameGenerator;

public class BlossomDisplayNameGeneration extends DisplayNameGenerator.Standard {
@Override
public String generateDisplayNameForMethod(final Class<?> clazz, final Method testMethod) {
public String generateDisplayNameForMethod(final List<Class<?>> enclosingTypes, final Class<?> clazz, final Method testMethod) {
final String name = testMethod.getName();
if (name.startsWith("test") && name.length() > 5) {
return Character.toLowerCase(name.charAt(4)) + name.substring(5);
Expand Down