mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-16 16:50:42 +08:00
Polish "Fix Groovy array declaration"
See gh-1016
This commit is contained in:
parent
4a2b3edcc8
commit
cddd4c7b5b
@ -243,7 +243,7 @@ class GroovySourceCodeWriterTests {
|
|||||||
List<String> lines = writeClassAnnotation(Annotation.name("org.springframework.test.TestApplication",
|
List<String> lines = writeClassAnnotation(Annotation.name("org.springframework.test.TestApplication",
|
||||||
(builder) -> builder.attribute("target", Class.class, "com.example.One", "com.example.Two")));
|
(builder) -> builder.attribute("target", Class.class, "com.example.One", "com.example.Two")));
|
||||||
assertThat(lines).containsExactly("package com.example", "", "import com.example.One", "import com.example.Two",
|
assertThat(lines).containsExactly("package com.example", "", "import com.example.One", "import com.example.Two",
|
||||||
"import org.springframework.test.TestApplication", "", "@TestApplication(target = { One, Two })",
|
"import org.springframework.test.TestApplication", "", "@TestApplication(target = [ One, Two ])",
|
||||||
"class Test {", "", "}");
|
"class Test {", "", "}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user