diff options
author | mkersten <mkersten> | 2005-08-25 14:48:07 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2005-08-25 14:48:07 +0000 |
commit | 37c44d35a618695c1abb2e204cc31c5e38bfcbe5 (patch) | |
tree | c36926867866ff421c058750e7b29edcc19a9eac /ajde | |
parent | 2172ceec0382a30dd7c8bbcf4e983b70225243a4 (diff) | |
download | aspectj-37c44d35a618695c1abb2e204cc31c5e38bfcbe5.tar.gz aspectj-37c44d35a618695c1abb2e204cc31c5e38bfcbe5.zip |
Fix for Bug #82752: ProgramElement.getSourceSignature returns "public" for "private" membersV1_5_0M3
Diffstat (limited to 'ajde')
-rw-r--r-- | ajde/testsrc/org/aspectj/ajde/AsmDeclarationsTest.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ajde/testsrc/org/aspectj/ajde/AsmDeclarationsTest.java b/ajde/testsrc/org/aspectj/ajde/AsmDeclarationsTest.java index 621b0c549..e374ba5cd 100644 --- a/ajde/testsrc/org/aspectj/ajde/AsmDeclarationsTest.java +++ b/ajde/testsrc/org/aspectj/ajde/AsmDeclarationsTest.java @@ -10,20 +10,16 @@ package org.aspectj.ajde; -//import java.util.Iterator; - -//import org.aspectj.ajdt.internal.core.builder.AsmElementFormatter; import org.aspectj.asm.*; -//import org.aspectj.asm.IProgramElement.Kind; - -// TODO: add tests for java kinds, expand coverage +/** + * @author Mik Kersten + */ public class AsmDeclarationsTest extends AjdeTestCase { private IHierarchy model = null; // TODO-path private static final String CONFIG_FILE_PATH = "../examples/coverage/coverage.lst"; -// private static final int DEC_MESSAGE_LENGTH = AsmElementFormatter.MAX_MESSAGE_LENGTH; public AsmDeclarationsTest(String name) { super(name); @@ -35,6 +31,12 @@ public class AsmDeclarationsTest extends AjdeTestCase { assertEquals(root.toLabelString(), "coverage.lst"); } + public void testAspectAccessibility() { + IProgramElement packageAspect = AsmManager.getDefault().getHierarchy().findElementForType(null, "AdviceNamingCoverage"); + assertNotNull(packageAspect); + assertEquals(IProgramElement.Accessibility.PACKAGE, packageAspect.getAccessibility()); + } + public void testStaticModifiers() { IProgramElement aspect = AsmManager.getDefault().getHierarchy().findElementForType(null, "ModifiersCoverage"); assertNotNull(aspect); @@ -119,7 +121,7 @@ public class AsmDeclarationsTest extends AjdeTestCase { // assertNotNull(constructorNode); // assertEquals(constructorNode.toLabelString(), constructorMsg); } - + public void testPointcuts() { IProgramElement node = (IProgramElement)model.getRoot(); assertNotNull(node); @@ -136,8 +138,6 @@ public class AsmDeclarationsTest extends AjdeTestCase { IProgramElement paramsNode = model.findElementForSignature(aspect, IProgramElement.Kind.POINTCUT, params); assertNotNull(paramsNode); assertEquals(paramsNode.toLabelString(), params); - - } public void testAbstract() { |