Skip to content

Commit

Permalink
Unittest for 61
Browse files Browse the repository at this point in the history
  • Loading branch information
rfscholte committed Nov 23, 2024
1 parent 1112792 commit ddb4bda
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/java/com/thoughtworks/qdox/AnnotationsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,13 @@ public void testTextBlock() {
+ " \"\"\"", builder.getClassByName( "Thingy" ).getAnnotations().get( 0 ).getProperty( "value" ).getParameterValue());

}

@Test
public void testComment() {
JavaProjectBuilder builder = new JavaProjectBuilder();
String source = "@Fields({\n"
+ " @Field(norms = Norms.NO, analyzer = @Analyzer(definition = \"whitespace_analyzer\")),\n"
+ " })";
builder.addSource( new StringReader( source ) );
}
}

0 comments on commit ddb4bda

Please sign in to comment.