public static void prepareCompilationUnit() throws Exception {
sCompilation = CompilationUtils.compileFile("src_comments/ClassWithCommentsToAssociate.java");
List<Comment> comments = CompilationUtils.extractComments(sCompilation);
CommentCleaner visitor = new CommentCleaner(sCompilation.getSource());
for (Comment comment : comments) {
visitor.process(comment);
}
sComments = visitor.getComments();
sRoot = new Node(JavaEntityType.METHOD, "foo");
sRoot.setEntity(new SourceCodeEntity("foo", JavaEntityType.METHOD, new SourceRange()));
AbstractMethodDeclaration method = CompilationUtils.findMethod(sCompilation.getCompilationUnit(), "foo");