File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
plugin-gradle/src/test/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1515 */
1616package com .diffplug .gradle .spotless ;
1717
18- import static org .junit . jupiter .api .Assertions .assertTrue ;
18+ import static org .assertj . core .api .Assertions .assertThat ;
1919
2020import java .io .File ;
2121import java .io .IOException ;
@@ -96,13 +96,13 @@ void testWithInvalidEditorConfigFile() throws IOException {
9696 "repositories { mavenCentral() }" ,
9797 "spotless {" ,
9898 " kotlin {" ,
99- " ktlint().setEditorConfigPath('" + invalidPath + "')" ,
99+ " ktlint().setEditorConfigPath('" + invalidPath . replace ( " \\ " , " \\ \\ " ) + "')" ,
100100 " }" ,
101101 "}" );
102102 setFile ("src/main/kotlin/Main.kt" ).toResource ("kotlin/ktlint/experimentalEditorConfigOverride.dirty" );
103103 String buildOutput = gradleRunner ().withArguments ("spotlessApply" ).buildAndFail ().getOutput ();
104- assertTrue (buildOutput .contains ("EditorConfig file does not exist: " ) );
105- assertTrue (buildOutput .contains (invalidPath ) );
104+ assertThat (buildOutput ) .contains ("EditorConfig file does not exist: " );
105+ assertThat (buildOutput ) .contains (invalidPath );
106106 }
107107
108108 @ Test
You can’t perform that action at this time.
0 commit comments