diff options
author | aclement <aclement> | 2008-03-20 00:12:27 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-03-20 00:12:27 +0000 |
commit | 331316fef7cc6c6ba77fd0ed63aaed630acaae28 (patch) | |
tree | 8fd35e1f48cc85117693234c2fa412812e7b4eb5 /tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java | |
parent | 75d917cdcf62a4c81befbfd535e38bb2b80a6466 (diff) | |
download | aspectj-331316fef7cc6c6ba77fd0ed63aaed630acaae28.tar.gz aspectj-331316fef7cc6c6ba77fd0ed63aaed630acaae28.zip |
164356: test and fix: ajdoc
Diffstat (limited to 'tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java index c21fd252f..4393ba98d 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java @@ -179,6 +179,27 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public void testNoNPEWithThrownExceptionWarningAndAtAspectj_pr161217() {runTest("NPE with thrown exception warning and at aspectj");} + public void testJavadocCommentsAreSetIfHaveNormalComments_pr164340() { + runTest("javadoc comments are set if have normal comments"); + IHierarchy top = AsmManager.getDefault().getHierarchy(); + + IProgramElement ipe = top.findElementForLabel(top.getRoot(), + IProgramElement.Kind.METHOD,"foo()"); + assertNotNull("expected formal comment to be non null but" + + " found that it was null",ipe.getFormalComment()); + + ipe = top.findElementForLabel(top.getRoot(), + IProgramElement.Kind.METHOD,"bar()"); + assertNotNull("expected formal comment to be non null but" + + " found that it was null",ipe.getFormalComment()); + + ipe = top.findElementForLabel(top.getRoot(), + IProgramElement.Kind.METHOD,"goo()"); + assertNull("expected formal comment to be null but" + + " found that it was " + ipe.getFormalComment(),ipe.getFormalComment()); + + } + public void testBinaryWeavingIntoJava6Library_pr164384() {runTest("binary weaving into java 6 library");} public void testCompilanceJava6ThrowsUsageError_pr164384() {runTest("compliance java 6 throws usage error");} public void testSourceLevelJava6ThrowsUsageError_pr164384() {runTest("source level java 6 throws usage error");} |