Polish "Fix Groovy array declaration"

See gh-1016
This commit is contained in:
Stephane Nicoll 2019-10-21 14:07:39 +02:00
parent 4a2b3edcc8
commit cddd4c7b5b

View File

@ -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 {", "", "}");
}