Skip to content

Commit

Permalink
unittest for #60
Browse files Browse the repository at this point in the history
  • Loading branch information
rfscholte committed Nov 23, 2024
1 parent f5a2d8b commit a426ff6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/test/java/com/thoughtworks/qdox/AnnotationsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
}

}

0 comments on commit a426ff6

Please sign in to comment.