28
28
import org .junit .jupiter .api .Test ;
29
29
import org .junit .jupiter .api .io .TempDir ;
30
30
31
- public class KtLintCompat0Dot48Dot1AdapterTest {
31
+ public class KtLintCompat0Dot48Dot0AdapterTest {
32
32
@ Test
33
33
public void testDefaults (@ TempDir Path path ) throws IOException {
34
- KtLintCompat0Dot48Dot1Adapter KtLintCompat0Dot48Dot1Adapter = new KtLintCompat0Dot48Dot1Adapter ();
35
- try (InputStream is = KtLintCompat0Dot48Dot1AdapterTest .class .getResourceAsStream ("/empty_class_body.kt" )) {
34
+ KtLintCompat0Dot48Dot0Adapter ktLintCompat0Dot48Dot0Adapter = new KtLintCompat0Dot48Dot0Adapter ();
35
+ try (InputStream is = KtLintCompat0Dot48Dot0AdapterTest .class .getResourceAsStream ("/empty_class_body.kt" )) {
36
36
Files .copy (is , path .resolve ("empty_class_body.kt" ));
37
37
}
38
38
String text = new String (Files .readAllBytes (path .resolve ("empty_class_body.kt" )), StandardCharsets .UTF_8 );
@@ -41,14 +41,14 @@ public void testDefaults(@TempDir Path path) throws IOException {
41
41
42
42
Map <String , Object > editorConfigOverrideMap = new HashMap <>();
43
43
44
- String formatted = KtLintCompat0Dot48Dot1Adapter .format (text , "empty_class_body.kt" , false , false , userData , editorConfigOverrideMap );
44
+ String formatted = ktLintCompat0Dot48Dot0Adapter .format (text , "empty_class_body.kt" , false , false , userData , editorConfigOverrideMap );
45
45
assertEquals ("class empty_class_body\n " , formatted );
46
46
}
47
47
48
48
@ Test
49
49
public void testEditorConfigCanDisable (@ TempDir Path path ) throws IOException {
50
- KtLintCompat0Dot48Dot1Adapter KtLintCompat0Dot48Dot1Adapter = new KtLintCompat0Dot48Dot1Adapter ();
51
- try (InputStream is = KtLintCompat0Dot48Dot1AdapterTest .class .getResourceAsStream ("/fails_no_semicolons.kt" )) {
50
+ KtLintCompat0Dot48Dot0Adapter ktLintCompat0Dot48Dot0Adapter = new KtLintCompat0Dot48Dot0Adapter ();
51
+ try (InputStream is = KtLintCompat0Dot48Dot0AdapterTest .class .getResourceAsStream ("/fails_no_semicolons.kt" )) {
52
52
Files .copy (is , path .resolve ("fails_no_semicolons.kt" ));
53
53
}
54
54
String text = new String (Files .readAllBytes (path .resolve ("fails_no_semicolons.kt" )), StandardCharsets .UTF_8 );
@@ -59,7 +59,7 @@ public void testEditorConfigCanDisable(@TempDir Path path) throws IOException {
59
59
editorConfigOverrideMap .put ("indent_style" , "tab" );
60
60
editorConfigOverrideMap .put ("ktlint_standard_no-semi" , "disabled" );
61
61
62
- String formatted = KtLintCompat0Dot48Dot1Adapter .format (text , "fails_no_semicolons.kt" , false , false , userData , editorConfigOverrideMap );
62
+ String formatted = ktLintCompat0Dot48Dot0Adapter .format (text , "fails_no_semicolons.kt" , false , false , userData , editorConfigOverrideMap );
63
63
assertEquals ("class fails_no_semicolons {\n \t val i = 0;\n }\n " , formatted );
64
64
}
65
65
}
0 commit comments