blob: e38baa1da142844c0d882dcb3bf8b21f0fd9f366 (
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
|
/* *******************************************************************
* Copyright (c) 2004 IBM Corporation
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0
* which accompanies this distribution and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* ******************************************************************/
package org.aspectj.systemtest.ajc120;
import java.io.File;
import junit.framework.Test;
import org.aspectj.testing.XMLBasedAjcTestCase;
public class Ajc120Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(Ajc120Tests.class);
}
protected File getSpecFile() {
return new File("../tests/src/org/aspectj/systemtest/ajc120/ajc120.xml");
}
public void test001(){
runTest("NPE in concretization error path");
}
public void test002(){
runTest("priviledged aspects calling methods from advice");
}
public void test003(){
runTest("No error on overloaded pointcuts in class");
}
public void test004(){
runTest("No error on overloaded pointcuts unless binding variables");
}
public void test005(){
runTest("Declare soft softening other exception types");
}
public void test006(){
runTest("static method introduction on interfaces, should not be allowed");
}
public void test007(){
runTest("External pointcut refs not resolved if named pointcut used by declare");
}
public void test008(){
runTest("Appropriate message for 'after() thowing(Throwable th)' syntax error");
}
public void test009(){
runTest("Ensure we don't look for source on the classpath when binary not found");
}
public void test010(){
runTest("inner aspect containing declare soft");
}
public void test011(){
runTest("Bad parser error recovery in advice");
}
public void test012(){
runTest("Bad parser error recovery in java source");
}
public void test013(){
runTest("compiler issues error on inner aspects when privilieged");
}
public void test014(){
runTest("After throwing advice on ctors doesn't execute for inter-type decl field inits");
}
public void test015(){
runTest("Introduced abstract method on abstract class not implemented by subtype (single source file)");
}
public void test016(){
runTest("Introduced abstract method on abstract class with introduced concrete method (single source file)");
}
public void test017(){
runTest("Introduced abstract method on abstract class with existing concrete method (single source file)");
}
public void test018(){
runTest("aspect declares interface method (no modifiers)");
}
public void test019(){
runTest("aspect declares interface method (abstract)");
}
public void test020(){
runTest("aspect declares interface method (public abstract)");
}
public void test021(){
runTest("Use class implementing interface via aspect (not woven together)");
}
public void test022(){
runTest("Use class implementing interface via aspect (weave all together)");
}
public void test023(){
runTest("Use class implementing interface via aspect (only one implementer)");
}
public void test024(){
runTest("Erroneous exception conversion");
}
public void test025(){
runTest("before():execution(new(..)) does not throw NoAspectBoundException");
}
public void test026(){
runTest("Anomalous handling of inter-type declarations to abstract base classes in aspectj 1.1");
}
public void test027(){
runTest("NPE When compiling intertype declaration");
}
public void test028(){
runTest("declare warning on subtype constructor");
}
public void test029(){
runTest("CatchClauseSignature has broken operation");
}
public void test030(){
runTest("after returning with parameter: matching rules");
}
public void test031(){
runTest("binary compatibility of advice method names - expect no error");
}
public void test032(){
runTest("binary compatibility of advice method names - expect error");
}
public void test033(){
runTest("binary compatibility of advice method names - expect no error");
}
public void test034(){
runTest("mail list VerifyError with protected access");
}
public void test035(){
runTest("Polymorphic ITD fails in CVS HEAD (From ajdt 1.1.6)");
}
public void test036(){
runTest("ClasscastException on concretization of if(false)");
}
public void test037(){
runTest("ClasscastException on concretization of if(false)");
}
public void test038(){
runTest("Introduced abstract method on interface not implemented by subtype (weave altogether)");
}
public void test039(){
runTest("declare String field on interface");
}
public void test040(){
runTest("declare int field on interface");
}
public void test041(){
runTest("declare Object field on interface");
}
public void test042(){
runTest("fail in compiling aspect with overriding method introduction with different throws clause ");
}
public void test043(){
runTest("super call in anonymous class created in around advice");
}
public void test044(){
runTest("retitle warning to circular {advice} dependency at ...");
}
public void test045(){
runTest("Introduce Unknown Type to class causes Null pointer exception");
}
public void test046(){
runTest("Private members introduced via an interface are visible to the class");
}
public void test047(){
runTest("declare precedence on a class should be a compile-time error");
}
public void test048(){
runTest("declare precedence on a class should be a compile-time error");
}
public void test049(){
runTest("NPE when binary weaving a ctor ITD");
}
public void test050(){
runTest("NPE in compiler when using (an unusual) declare warning against a ctor ITD");
}
public void test051(){
runTest("InterTypeMethodDeclaration.java:104");
}
public void test052(){
runTest("nested uses of this() inside constructors not handled properly for initialization and preinitialization pointcuts");
}
public void test053(){
runTest("wrong variable binding in || pointcuts");
}
public void test054(){
runTest("error message for constructor-execution pcd");
}
public void test055(){
runTest("weaving using an empty jar in -injars");
}
public void test056(){
runTest("weaving using an empty jar in -aspectpath");
}
}
|