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 15
15
*/
16
16
package com .diffplug .gradle .spotless ;
17
17
18
- import static org .junit . jupiter .api .Assertions .assertTrue ;
18
+ import static org .assertj . core .api .Assertions .assertThat ;
19
19
20
20
import java .io .File ;
21
21
import java .io .IOException ;
@@ -96,13 +96,13 @@ void testWithInvalidEditorConfigFile() throws IOException {
96
96
"repositories { mavenCentral() }" ,
97
97
"spotless {" ,
98
98
" kotlin {" ,
99
- " ktlint().setEditorConfigPath('" + invalidPath + "')" ,
99
+ " ktlint().setEditorConfigPath('" + invalidPath . replace ( " \\ " , " \\ \\ " ) + "')" ,
100
100
" }" ,
101
101
"}" );
102
102
setFile ("src/main/kotlin/Main.kt" ).toResource ("kotlin/ktlint/experimentalEditorConfigOverride.dirty" );
103
103
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 );
106
106
}
107
107
108
108
@ Test
You can’t perform that action at this time.
0 commit comments