blob: 3a2e74d03bfd7e3b639863151238217ac2cfb1fd (
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
|
/*******************************************************************************
* 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 implementation Alexandre Vasseur
*******************************************************************************/
package org.aspectj.systemtest.ajc150.ataspectj;
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 AtAjSyntaxTests extends XMLBasedAjcTestCase {
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(AtAjSyntaxTests.class);
}
protected java.net.URL getSpecFile() {
return getClassResource("syntax.xml");
}
public void testSimpleBefore() {
runTest("SimpleBefore");
}
public void testSimpleAfter() {
runTest("SimpleAfter");
}
public void testSingletonAspectBindings() {
// Note AV: uncomment setReporting to get it in modules/tests folder
// org.aspectj.asm.AsmManager.setReporting("debug.txt",true,true,true,true);
runTest("singletonAspectBindings");
// same stuff with AJ
// org.aspectj.asm.AsmManager.setReporting("debug-aj.txt",true,true,true,true);
// runTest("singletonAspectBindings2");
}
public void testCflowTest() {
runTest("CflowTest");
}
public void testPointcutReferenceTest() {
runTest("PointcutReferenceTest");
}
public void testXXJoinPointTest() {
runTest("XXJoinPointTest");
}
public void testPrecedenceTest() {
runTest("PrecedenceTest");
}
public void testAfterXTest() {
runTest("AfterXTest");
}
public void testBindingTest() {
runTest("BindingTest");
}
public void testBindingTestNoInline() {
runTest("BindingTest no inline");
}
public void testPerClause() {
runTest("PerClause");
}
public void testAroundInlineMunger_XnoInline() {
runTest("AroundInlineMunger -XnoInline");
}
public void testAroundInlineMunger() {
try {
runTest("AroundInlineMunger");
} finally {
System.out.println(ajc.getLastCompilationResult().getStandardError());
}
}
public void testAroundInlineMunger2() {
runTest("AroundInlineMunger2");
}
public void testDeow() {
runTest("Deow");
}
public void testSingletonInheritance() {
runTest("singletonInheritance");
}
public void testPerClauseInheritance() {
runTest("perClauseInheritance");
}
public void testIfPointcut() {
runTest("IfPointcutTest");
}
public void testIfPointcut2() {
runTest("IfPointcut2Test");
}
public void testMultipleBinding() {
runTest("MultipleBinding");
}
public void testBug104212() {
runTest("Bug104212");
}
public void testDeclareParentsInterface() {
runTest("DeclareParentsInterface");
}
public void testDeclareParentsImplements() {
runTest("DeclareParentsImplements");
}
public void testAbstractAspectNPE() {
runTest("AbstractAspectNPE");
}
public void testAbstractInherited() {
runTest("AbstractInherited");
}
}
|