aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2002-12-30 20:32:08 +0000
committerjhugunin <jhugunin>2002-12-30 20:32:08 +0000
commit991411ec528ac2ef965ccc669217cc5099800ae2 (patch)
tree61b866703f77b644db85c626625e500ec2d0fa44 /tests
parent4edc1f290250cb93168c0aadc9f25ba5949b6bc4 (diff)
downloadaspectj-991411ec528ac2ef965ccc669217cc5099800ae2.tar.gz
aspectj-991411ec528ac2ef965ccc669217cc5099800ae2.zip
moving now working tests
Diffstat (limited to 'tests')
-rw-r--r--tests/ajcTests.xml76
-rw-r--r--tests/ajcTestsFailing.xml74
2 files changed, 78 insertions, 72 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml
index a4ec74a67..85815b9d9 100644
--- a/tests/ajcTests.xml
+++ b/tests/ajcTests.xml
@@ -5315,4 +5315,80 @@
-->
</ajc-test>
+
+ <ajc-test dir="new" pr="774"
+ title="interface self-reference in anonymous instance">
+ <compile files="AnonymousSelfReference.java"/>
+ <run class="AnonymousSelfReference"/>
+ </ajc-test>
+
+ <ajc-test dir="new" pr="776"
+ title="self-reference from (aspect-declared) method-local class">
+ <compile files="MethodSelfReference.java"/>
+ <run class="MethodSelfReference"/>
+ </ajc-test>
+
+ <ajc-test dir="new" title="expect CE for unterminated declare error">
+ <compile files="UnterminatedDeclareErrorCE.java">
+ <message kind="error" line="5"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="new"
+ title="expect CE for declaration collision between subaspects instead of domination order">
+ <compile files="DeclarationCollisionCE.java">
+ <message kind="error" line="10"/>
+ <message kind="error" line="20"/>
+ <message kind="error" line="27"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="new"
+ title="subtype pattern in dominates should pick out aspect subtypes">
+ <compile files="DominatesTypePattern.java"/>
+ <run class="DominatesTypePattern"/>
+ </ajc-test>
+
+ <ajc-test dir="new"
+ title="subtype pattern in dominates will conflict with type pattern">
+ <compile files="DominatesTypePatternCE.java">
+ <message kind="error" line="15"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="new" pr="827"
+ title="after returning advice on interface and implementation constructor"
+ keywords="tofix">
+ <compile files="AfterReturningConstructor.java"/>
+ <run class="AfterReturningConstructor"/>
+ </ajc-test>
+
+ <ajc-test dir="new" pr="832"
+ title="after throwing advice with non-throwable formal">
+ <compile files="AfterThrowingNonThrowable.java">
+ <message kind="error" line="41"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="new" pr="829" title="declare array field using postfix"
+ keywords="tofix">
+ <compile files="ArrayFieldDeclaration.java">
+ <message kind="error" line="17"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="new" pr="851"
+ title="prohibit declaring new aspect constructor with arguments">
+ <compile files="DeclareAspectConstructorCE.java">
+ <message kind="error" line="10"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="new" pr="851"
+ title="prohibit declaring only aspect constructor with arguments">
+ <compile files="DeclareOnlyAspectConstructorCE.java">
+ <message kind="error" line="10"/>
+ </compile>
+ </ajc-test>
+
</suite>
diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml
index 9a1410de4..fa86d7665 100644
--- a/tests/ajcTestsFailing.xml
+++ b/tests/ajcTestsFailing.xml
@@ -2,46 +2,8 @@
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
<suite>
- <ajc-test dir="new" pr="774"
- title="interface self-reference in anonymous instance (correct test in knownbugs)"
- keywords="tofix"
- comment="correct behavior for 1.0 is good error message, see real test in knownbugs">
- <compile files="AnonymousSelfReference.java">
- <message kind="error" line="17"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="new" pr="776"
- title="self-reference from (aspect-declared) method-local class (correct test in knownbugs)"
- keywords="tofix"
- comment="correct behavior for 1.0 is good error message, see real test in knownbugs">
- <compile files="MethodSelfReference.java">
- <message kind="error" line="16"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="new" title="expect CE for unterminated declare error"
- keywords="tofix">
- <compile files="UnterminatedDeclareErrorCE.java">
- <message kind="error" line="7"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="new"
- title="expect CE for declaration collision between subaspects instead of domination order"
- keywords="tofix">
- <compile files="DeclarationCollisionCE.java">
- <message kind="error" line="28"/>
- </compile>
- </ajc-test>
<ajc-test dir="new"
- title="subtype pattern in dominates should pick out aspect subtypes"
- keywords="tofix">
- <compile files="DominatesTypePattern.java"/>
- <run class="DominatesTypePattern"/>
- </ajc-test>
- <ajc-test dir="new"
title="unmatched type name in a declare parents should result in a warning in -Xlint mode"
keywords="tofix">
<compile options="-Xlint" files="MissingTypeInDeclareParents.java">
@@ -57,25 +19,6 @@
<run class="AspectStaticInit"/>
</ajc-test>
- <ajc-test dir="new" pr="827"
- title="after returning advice on interface and implementation constructor"
- keywords="tofix">
- <compile files="AfterReturningConstructor.java"/>
- <run class="AfterReturningConstructor"/>
- </ajc-test>
-
- <ajc-test dir="new" pr="832"
- title="after throwing advice with non-throwable formal"
- keywords="tofix">
- <compile files="AfterThrowingNonThrowable.java"/>
- <run class="AfterThrowingNonThrowable"/>
- </ajc-test>
-
- <ajc-test dir="new" pr="829" title="declare array field using postfix"
- keywords="tofix">
- <compile files="ArrayFieldDeclaration.java"/>
- <run class="ArrayFieldDeclaration"/>
- </ajc-test>
<ajc-test dir="new" pr="838"
title="checking around join point for advice return type - numeric"
@@ -87,21 +30,8 @@
<ajc-test dir="new" pr="836" title="void around advice without proceed"
keywords="tofix">
- <compile files="VoidAround.java"/>
- <run class="VoidAround"/>
- </ajc-test>
-
- <ajc-test dir="new" pr="851"
- title="prohibit declaring new aspect constructor with arguments">
- <compile files="DeclareAspectConstructorCE.java">
- <message kind="error" line="10"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="new" pr="851"
- title="prohibit declaring only aspect constructor with arguments">
- <compile files="DeclareOnlyAspectConstructorCE.java">
- <message kind="error" line="10"/>
+ <compile files="VoidAround.java">
+ <message kind="error" line="29"/>
</compile>
</ajc-test>