File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/test/java/com/diffplug/spotless/cli/steps Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ void itLetsSelectCustomVersion() {
150150 }
151151
152152 @ Test
153- void itSelectsCustomVersion () {
153+ void itSelectsCustomVersion () throws IOException {
154154 // bug https://github.com/solven-eu/cleanthat/issues/897 has been fixed in 2.24, so selecting 2.23 should yield
155155 // no fix
156156 setFile ("Test.java" ).toResource ("java/cleanthat/ModifierOrderBug.dirty.test" );
@@ -172,6 +172,6 @@ void itSelectsCustomVersion() {
172172 .withOption ("--add-mutator" , "ModifierOrder" )
173173 .withOption ("--use-version" , "2.23" )
174174 .run ();
175- assertFile ("Test2.java" ).hasContent ( "Deprecatedprivate" , StandardCharsets . UTF_8 );
175+ assertFile ("Test2.java" ).matches ( that -> that . contains ( "Deprecatedprivate" ) );
176176 }
177177}
You can’t perform that action at this time.
0 commit comments