mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-15 23:13:30 +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",
|
||||
(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",
|
||||
"import org.springframework.test.TestApplication", "", "@TestApplication(target = { One, Two })",
|
||||
"import org.springframework.test.TestApplication", "", "@TestApplication(target = [ One, Two ])",
|
||||
"class Test {", "", "}");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user