8264664: use text blocks in javac module tests

Reviewed-by: darcy
This commit is contained in:
Jonathan Gibbons 2021-04-03 01:18:00 +00:00
parent cec66cf8ef
commit e8eda655bb
18 changed files with 630 additions and 503 deletions

View file

@ -47,11 +47,12 @@ public class HelloWorldTest extends ModuleTestBase {
}
public static final String HELLO_WORLD =
"class HelloWorld {\n"
+ " public static void main(String... args) {\n"
+ " System.out.println(\"Hello World!\");\n"
+ " }\n"
+ "}";
"""
class HelloWorld {
public static void main(String... args) {
System.out.println("Hello World!");
}
}""";
public static final String PKG_HELLO_WORLD =
"package p;\n"