From: aclement Date: Fri, 5 Dec 2008 22:00:38 +0000 (+0000) Subject: 219419: test and fix X-Git-Tag: V1_6_3rc1~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=de4e0f04be33c3465fb8834558320d12d06b1128;p=aspectj.git 219419: test and fix --- diff --git a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java index a461b9263..1f33e5792 100644 --- a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java @@ -32,6 +32,32 @@ public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // runTest("ataspectj decp"); // } + public void testIncorrectArgOrdering_pr219419() { + runTest("incorrect arg ordering anno style"); + } + + public void testIncorrectArgOrdering_pr219419_2() { + runTest("incorrect arg ordering anno style - 2"); + } + + public void testIncorrectArgOrdering_pr219419_3() { + runTest("incorrect arg ordering anno style - 3"); + } + + // similar to 3 but parameters other way round + public void testIncorrectArgOrdering_pr219419_4() { + runTest("incorrect arg ordering anno style - 4"); + } + + // similar to 3 but also JoinPoint passed into advice + public void testIncorrectArgOrdering_pr219419_5() { + runTest("incorrect arg ordering anno style - 5"); + } + + // public void testDecpAnnoStyle_pr257754() { + // runTest("decp anno style"); + // } + public void testPoorAtAjIfMessage_pr256458() { runTest("poor ataj if message - 1"); } @@ -39,15 +65,12 @@ public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public void testPoorAtAjIfMessage_pr256458_2() { runTest("poor ataj if message - 2"); } -/* - public void testInheritedAnnotations_pr128664() { - runTest("inherited annotations"); - } - public void testInheritedAnnotations_pr128664_2() { - runTest("inherited annotations - 2"); - } -*/ + /* + * public void testInheritedAnnotations_pr128664() { runTest("inherited annotations"); } + * + * public void testInheritedAnnotations_pr128664_2() { runTest("inherited annotations - 2"); } + */ public void testGetMethodNull_pr154427() { runTest("getMethod returning null"); } @@ -98,6 +121,10 @@ public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase { IProgramElement itd = findElementAtLine(top.getRoot(), 10); String type = itd.getCorrespondingType(true); assertEquals("java.util.List", type); + + itd = findElementAtLine(top.getRoot(), 16); + type = itd.getCorrespondingType(true); + assertEquals("java.util.List", type); } private IProgramElement findElementAtLine(IProgramElement whereToLook, int line) { diff --git a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml index 11c89c64f..7a07dff4a 100644 --- a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml +++ b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml @@ -33,6 +33,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +