diff --git a/testlib/src/test/java/com/diffplug/spotless/kotlin/KtLintStepTest.java b/testlib/src/test/java/com/diffplug/spotless/kotlin/KtLintStepTest.java index 4153654769..2fa458bf94 100644 --- a/testlib/src/test/java/com/diffplug/spotless/kotlin/KtLintStepTest.java +++ b/testlib/src/test/java/com/diffplug/spotless/kotlin/KtLintStepTest.java @@ -15,7 +15,6 @@ */ package com.diffplug.spotless.kotlin; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import com.diffplug.spotless.FormatterStep; @@ -29,18 +28,15 @@ * causes these problems. The root is still a gradle bug, but in the meantime we don't * need to hold up *every* PR with this: https://github.com/gradle/gradle/issues/11752 */ -@Disabled class KtLintStepTest extends ResourceHarness { @Test void behavior() throws Exception { - // Must use jcenter (GONE) because `com.andreapivetta.kolor:kolor:0.0.2` isn't available on mavenCentral. - // It is a dependency of ktlint. FormatterStep step = KtLintStep.create(TestProvisioner.mavenCentral()); StepHarness.forStep(step) .testResource("kotlin/ktlint/basic.dirty", "kotlin/ktlint/basic.clean") .testResourceException("kotlin/ktlint/unsolvable.dirty", assertion -> { assertion.isInstanceOf(AssertionError.class); - assertion.hasMessage("Error on line: 1, column: 1\n" + + assertion.hasMessage("Error on line: 1, column: 2\n" + "Wildcard import"); }); }