File tree 1 file changed +1
-5
lines changed
testlib/src/test/java/com/diffplug/spotless/kotlin
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package com .diffplug .spotless .kotlin ;
17
17
18
- import org .junit .jupiter .api .Disabled ;
19
18
import org .junit .jupiter .api .Test ;
20
19
21
20
import com .diffplug .spotless .FormatterStep ;
29
28
* causes these problems. The root is still a gradle bug, but in the meantime we don't
30
29
* need to hold up *every* PR with this: https://github.com/gradle/gradle/issues/11752
31
30
*/
32
- @ Disabled
33
31
class KtLintStepTest extends ResourceHarness {
34
32
@ Test
35
33
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.
38
34
FormatterStep step = KtLintStep .create (TestProvisioner .mavenCentral ());
39
35
StepHarness .forStep (step )
40
36
.testResource ("kotlin/ktlint/basic.dirty" , "kotlin/ktlint/basic.clean" )
41
37
.testResourceException ("kotlin/ktlint/unsolvable.dirty" , assertion -> {
42
38
assertion .isInstanceOf (AssertionError .class );
43
- assertion .hasMessage ("Error on line: 1, column: 1 \n " +
39
+ assertion .hasMessage ("Error on line: 1, column: 2 \n " +
44
40
"Wildcard import" );
45
41
});
46
42
}
You can’t perform that action at this time.
0 commit comments