blob: 0560e2fb5926c0f7c067f7e88798bf9e1382d566 (
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
|
/*******************************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution and is available at
* http://eclipse.org/legal/epl-v10.html
*
* Contributors:
* initial implementation Alexandre Vasseur
*******************************************************************************/
package org.aspectj.systemtest.ajc150.ataspectj;
import junit.framework.Test;
import org.aspectj.testing.XMLBasedAjcTestCase;
import java.io.File;
/**
* 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 File getSpecFile() {
return new File("../tests/src/org/aspectj/systemtest/ajc150/ataspectj/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() {
runTest("AroundInlineMunger");
}
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");
}
}
|