use of com.github.javaparser.ast.ImportDeclaration in project javaparser by javaparser.
the class NameTest method importName.
@Test
public void importName() {
ImportDeclaration importDeclaration = parseImport("import java.@Abc util.List;");
assertThat(importDeclaration.getName().getQualifier().get().getAnnotations()).containsExactly(new MarkerAnnotationExpr("Abc"));
assertEquals("import java.@Abc util.List;" + EOL, importDeclaration.toString());
assertEquals("import java.@Abc util.List;", ConcreteSyntaxModel.genericPrettyPrint(importDeclaration));
}
Aggregations