File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
testlib/src/test/java/com/diffplug/spotless/kotlin Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 1515 */
1616package com .diffplug .spotless .kotlin ;
1717
18- import org .junit .jupiter .api .Disabled ;
1918import org .junit .jupiter .api .Test ;
2019
2120import com .diffplug .spotless .FormatterStep ;
2928 * causes these problems. The root is still a gradle bug, but in the meantime we don't
3029 * need to hold up *every* PR with this: https://github.com/gradle/gradle/issues/11752
3130 */
32- @ Disabled
3331class KtLintStepTest extends ResourceHarness {
3432 @ Test
3533 void behavior () throws Exception {
36- // Must use jcenter (GONE) because `com.andreapivetta.kolor:kolor:0.0.2` isn't available on mavenCentral.
37- // It is a dependency of ktlint.
3834 FormatterStep step = KtLintStep .create (TestProvisioner .mavenCentral ());
3935 StepHarness .forStep (step )
4036 .testResource ("kotlin/ktlint/basic.dirty" , "kotlin/ktlint/basic.clean" )
4137 .testResourceException ("kotlin/ktlint/unsolvable.dirty" , assertion -> {
4238 assertion .isInstanceOf (AssertionError .class );
43- assertion .hasMessage ("Error on line: 1, column: 1 \n " +
39+ assertion .hasMessage ("Error on line: 1, column: 2 \n " +
4440 "Wildcard import" );
4541 });
4642 }
You can’t perform that action at this time.
0 commit comments