";
- String expected = "Here's an example of how to use the \"Arrays.sort()\" method:\n" +
- "\n" +
- "" +
- "int[] numbers = { 5, 3, 9, 1, 7 };\n" +
- "Arrays.sort(numbers);\n" +
- "
\n" +
- "\n" +
- "";
+ String expected = """
+ Here's an example of how to use the "Arrays.sort()" method:
+
+
+
+ int[] numbers = { 5, 3, 9, 1, 7 };
+ Arrays.sort(numbers);
+
+
+
+
+
+ """;
CodeBlockTransformer transformer = new CodeBlockTransformer();
@@ -75,14 +80,19 @@ public void codeBlockWithoutLangGetsTransformed() {
"\n" +
"";
- String expected = "Here's an example of how to use the \"Arrays.sort()\" method:\n" +
- "\n" +
- "" +
- "int[] numbers = { 5, 3, 9, 1, 7 };\n" +
- "Arrays.sort(numbers);\n" +
- "
\n" +
- "\n" +
- "";
+ String expected = """
+ Here's an example of how to use the "Arrays.sort()" method:
+
+
+
+ int[] numbers = { 5, 3, 9, 1, 7 };
+ Arrays.sort(numbers);
+
+
+
+
+
+ """;
CodeBlockTransformer transformer = new CodeBlockTransformer();