blob: 67ed9fa8afd9755eee185bf86eb3a9bfb34bd003 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
/*******************************************************************************
* Copyright (c) 2005 Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
*
* Contributors:
* initial development Jonas Bon�r, Alexandre Vasseur
*******************************************************************************/
package org.aspectj.systemtest.ajc150.ataspectj;
import java.net.URL;
import org.aspectj.testing.XMLBasedAjcTestCase;
import junit.framework.Test;
/**
* A suite for @AspectJ aspects located in java5/ataspectj
*
* @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
*/
public class AtAjAnnotationGenTests extends XMLBasedAjcTestCase {
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(AtAjAnnotationGenTests.class);
}
protected URL getSpecFile() {
return getClassResource("annotationgen.xml");
}
public void testSimpleAspect() {
runTest("annotation gen for simple aspect");
}
public void testAspectAlreadyAnnotated() {
runTest("annotation gen for simple annotated aspect");
}
public void testPrivilegedAspect() {
runTest("annotation gen for privileged aspect");
}
public void testPerThisAspect() {
runTest("annotation gen for perthis aspect");
}
public void testPerTargetAspect() {
runTest("annotation gen for pertarget aspect");
}
public void testPerCflowAspect() {
runTest("annotation gen for percflow aspect");
}
public void testPerCflowbelowAspect() {
runTest("annotation gen for percflowbelow aspect");
}
public void testPertypewithinAspect() {
runTest("annotation gen for pertypewithin aspect");
}
public void testInnerAspectOfClass() {
runTest("annotation gen for inner aspect of aspect");
}
public void testInnerAspectOfAspect() {
runTest("annotation gen for inner aspect of class");
}
public void testAdvice() {
runTest("annotation gen for advice declarations");
}
public void testSimplePointcut() {
runTest("annotation gen for simple pointcut");
}
public void testPointcutModifiers() {
runTest("annotation gen for pointcut modifiers");
}
public void testPointcutParams() {
runTest("annotation gen for pointcut params");
}
public void testPointcutRefs() {
runTest("annotation gen for pointcut refs");
}
public void testBeforeWithBadReturn() {
runTest("before ann with non-void return");
}
public void testTwoAnnotationsOnSameElement() {
runTest("two anns on same element");
}
public void testBadPcutInAdvice() {
runTest("bad pcut in after advice");
}
public void testBadParameterBinding() {
runTest("bad parameter binding in advice");
}
public void testSimpleAtPointcut() {
runTest("simple pointcut no params");
}
public void testPointcutMedley() {
runTest("pointcut medley");
}
public void testAdviceDeclaredInClass() {
runTest("advice in a class");
}
public void testDeows() {
runTest("ann gen for deows");
}
public void testRuntimePointcutsReferencingCompiledPointcuts() {
runTest("runtime pointcut resolution referencing compiled pointcuts");
}
public void testDecP() {
runTest("ann gen for decp");
}
public void testDecPAdvanced() {
runTest("ann gen for decp 2");
}
public void testDecS() {
runTest("ann gen for decs");
}
public void testDecPrecedence() {
runTest("ann gen for dec precedence");
}
public void testDecAnnotation() {
runTest("ann gen for dec annotation");
}
public void testITDs() {
runTest("ann gen for itds");
}
}
|