Skip to content

Commit 290021a

Browse files
chore(deps): Update mammoth to v1.5.0 (#108)
* chore(deps): Update mammoth to v1.5.0 * chore: adjust for JUnit changes --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: zml <[email protected]>
1 parent 1288b8b commit 290021a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ subprojects {
116116
extensions.configure(SpotlessExtension::class) {
117117
fun FormatExtension.standardOptions() {
118118
endWithNewline()
119-
indentWithSpaces(4)
119+
leadingTabsToSpaces(4)
120120
trimTrailingWhitespace()
121121
this.toggleOffOn("@formatter:off", "@formatter:on")
122122
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ indra = "3.2.0"
66
pluginPublish = "1.3.1"
77
spotless = "7.2.1"
88
junit = "5.9.3"
9-
mammoth = "1.4.0"
9+
mammoth = "1.5.0"
1010

1111
[libraries]
1212
gson = { module = "com.google.code.gson:gson", version = "2.13.2" }

testlib/src/main/java/org/spongepowered/gradle/build/FunctionalTestDisplayNameGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.junit.jupiter.api.DisplayNameGenerator;
2828

2929
import java.lang.reflect.Method;
30+
import java.util.List;
3031

3132
/**
3233
* An extension of the standard display name generator that only uses method names for test display names.
@@ -36,7 +37,7 @@
3637
public final class FunctionalTestDisplayNameGenerator extends DisplayNameGenerator.Standard {
3738

3839
@Override
39-
public String generateDisplayNameForMethod(final Class<?> testClass, final Method testMethod) {
40+
public String generateDisplayNameForMethod(final List<Class<?>> enclosing, final Class<?> testClass, final Method testMethod) {
4041
final String name = testMethod.getName();
4142
if (name.startsWith("test") && name.length() > 5) {
4243
return Character.toLowerCase(name.charAt(4)) + name.substring(5);

0 commit comments

Comments
 (0)