1
1
/*
2
- * Copyright 2021-2023 DiffPlug
2
+ * Copyright 2021-2024 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -33,11 +33,11 @@ class DiktatStepTest extends ResourceHarness {
33
33
@ Test
34
34
void behavior () {
35
35
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()" );
41
41
}
42
42
43
43
@ Test
@@ -47,11 +47,11 @@ void behaviorConf() throws Exception {
47
47
FileSignature config = signAsList (conf );
48
48
49
49
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()" );
55
55
}
56
56
57
57
@ Test
0 commit comments