Creating self-closing tag when annotation arguments list is not null, but empty. Added test.

This commit is contained in:
Evgeny Gerashchenko
2012-08-30 16:17:11 +04:00
parent 37ceccb1eb
commit cfb2a511e9
3 changed files with 14 additions and 1 deletions

View File

@@ -106,6 +106,8 @@ public class AddAnnotationFixTest extends UsefulTestCase {
final PsiModifierListOwner listOwner = PsiTreeUtil.getParentOfType(psiElement, PsiModifierListOwner.class);
assertNotNull(listOwner);
assertNotNull(ExternalAnnotationsManager.getInstance(project).findExternalAnnotation(listOwner, AnnotationUtil.NOT_NULL));
myFixture.checkResultByFile("content/anno/p/annotations.xml", "content/anno/p/annotationsAnnotateLibrary_after.xml", false);
}
public void testPrimitive() throws Throwable {