11/*
2- * Copyright 2021-2023 DiffPlug
2+ * Copyright 2021-2024 DiffPlug
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -33,11 +33,11 @@ class DiktatStepTest extends ResourceHarness {
3333 @ Test
3434 void behavior () {
3535 FormatterStep step = DiktatStep .create (TestProvisioner .mavenCentral ());
36- StepHarnessWithFile .forStep (this , step ).testResourceExceptionMsg ("kotlin/diktat/Unsolvable.kt" ).isEqualTo ("There are 2 unfixed errors:" +
37- System . lineSeparator () + "Error on line: 12, column: 9 cannot be fixed automatically" +
38- System . lineSeparator () + "[DEBUG_PRINT] use a dedicated logging library: found println()" +
39- System . lineSeparator () + "Error on line: 13, column: 9 cannot be fixed automatically" +
40- System . lineSeparator () + "[DEBUG_PRINT] use a dedicated logging library: found println()" );
36+ StepHarnessWithFile .forStep (this , step ).testResourceExceptionMsg ("kotlin/diktat/Unsolvable.kt" ).isEqualTo ("There are 2 unfixed errors:\n " +
37+ "Error on line: 12, column: 9 cannot be fixed automatically\n " +
38+ "[DEBUG_PRINT] use a dedicated logging library: found println()\n " +
39+ "Error on line: 13, column: 9 cannot be fixed automatically\n " +
40+ "[DEBUG_PRINT] use a dedicated logging library: found println()" );
4141 }
4242
4343 @ Test
@@ -47,11 +47,11 @@ void behaviorConf() throws Exception {
4747 FileSignature config = signAsList (conf );
4848
4949 FormatterStep step = DiktatStep .create ("1.2.1" , TestProvisioner .mavenCentral (), config );
50- StepHarnessWithFile .forStep (this , step ).testResourceExceptionMsg ("kotlin/diktat/Unsolvable.kt" ).isEqualTo ("There are 2 unfixed errors:" +
51- System . lineSeparator () + "Error on line: 1, column: 1 cannot be fixed automatically" +
52- System . lineSeparator () + "[DEBUG_PRINT] use a dedicated logging library: found println()" +
53- System . lineSeparator () + "Error on line: 13, column: 9 cannot be fixed automatically" +
54- System . lineSeparator () + "[DEBUG_PRINT] use a dedicated logging library: found println()" );
50+ StepHarnessWithFile .forStep (this , step ).testResourceExceptionMsg ("kotlin/diktat/Unsolvable.kt" ).isEqualTo ("There are 2 unfixed errors:\n " +
51+ "Error on line: 1, column: 1 cannot be fixed automatically\n " +
52+ "[DEBUG_PRINT] use a dedicated logging library: found println()\n " +
53+ "Error on line: 13, column: 9 cannot be fixed automatically\n " +
54+ "[DEBUG_PRINT] use a dedicated logging library: found println()" );
5555 }
5656
5757 @ Test
0 commit comments