Skip to content

Commit f33f8be

Browse files
committed
Revert unneeded changes to KtlintTest
1 parent 2effcbd commit f33f8be

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

plugin-maven/src/test/java/com/diffplug/spotless/maven/kotlin/KtlintTest.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ void testKtlintEditorConfigOverride() throws Exception {
5050

5151
@Test
5252
void testReadCodeStyleFromEditorConfigFile() throws Exception {
53-
setFile(".editorconfig").toResource("kotlin/ktlint/intellij_idea/.editorconfig");
53+
setFile(".editorconfig").toResource("kotlin/ktlint/ktlint_official/.editorconfig");
5454
writePomWithKotlinSteps("<ktlint/>");
55-
checkIntellijIdeaStyle();
55+
checkKtlintOfficialStyle();
5656
}
5757

5858
@Test
@@ -98,11 +98,4 @@ private void checkKtlintOfficialStyle() throws Exception {
9898
mavenRunner().withArguments("spotless:apply").runNoError();
9999
assertFile(path).sameAsResource("kotlin/ktlint/experimentalEditorConfigOverride.ktlintOfficial.clean");
100100
}
101-
102-
private void checkIntellijIdeaStyle() throws Exception {
103-
String path = "src/main/kotlin/Main.kt";
104-
setFile(path).toResource("kotlin/ktlint/experimentalEditorConfigOverride.dirty");
105-
mavenRunner().withArguments("spotless:apply").runNoError();
106-
assertFile(path).sameAsResource("kotlin/ktlint/experimentalEditorConfigOverride.intellijIdea.clean");
107-
}
108101
}

testlib/src/main/resources/kotlin/ktlint/experimentalEditorConfigOverride.intellijIdea.clean

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)