From ef003c8b0244a262c7c332b08c8b3ea84718abc1 Mon Sep 17 00:00:00 2001 From: Robert Scholte Date: Sat, 23 Nov 2024 14:42:13 +0100 Subject: [PATCH] unittest for #60 (#243) --- .../java/com/thoughtworks/qdox/AnnotationsTest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/thoughtworks/qdox/AnnotationsTest.java b/src/test/java/com/thoughtworks/qdox/AnnotationsTest.java index 9e7f14ac..b37b562a 100644 --- a/src/test/java/com/thoughtworks/qdox/AnnotationsTest.java +++ b/src/test/java/com/thoughtworks/qdox/AnnotationsTest.java @@ -270,11 +270,19 @@ public void testTextBlock() { } @Test - public void testComment() { + public void testValueArray() { JavaProjectBuilder builder = new JavaProjectBuilder(); String source = "@Fields({\n" + " @Field(norms = Norms.NO, analyzer = @Analyzer(definition = \"whitespace_analyzer\")),\n" + " })"; builder.addSource( new StringReader( source ) ); } + + @Test + public void testFQNAnnotation() { + JavaProjectBuilder builder = new JavaProjectBuilder(); + String source = "@Type(type = \"com.example.Type\", parameters = @com.example.Parameter(name = \"class\", value = \"com.example.Object\"))"; + builder.addSource( new StringReader( source ) ); + } + }