blob: 9d38afe73282c9a824a6aab81d3c789d5c903c89 (
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
|
/*******************************************************************************
* Copyright (c) 2014 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:
* Andy Clement - initial API and implementation
*******************************************************************************/
package org.aspectj.systemtest.ajc184;
import org.aspectj.testing.XMLBasedAjcTestCase;
import junit.framework.Test;
/**
* @author Andy Clement
*/
public class Ajc184Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// The thisAspectInstance tests here are a copy from Ajc1612Tests but we are compiling with -1.8 and not -1.5
public void testThisAspectInstance_239649_1() throws Exception {
// simple case
runTest("thisAspectInstance - 1");
}
public void testThisAspectInstance_239649_2() throws Exception {
// before advice toggling on/off through if called method
runTest("thisAspectInstance - 2");
}
public void testThisAspectInstance_239649_3() throws Exception {
// after advice toggling on/off through if called method
runTest("thisAspectInstance - 3");
}
public void testThisAspectInstance_239649_4() throws Exception {
// before advice, also using thisJoinPointStaticPart
runTest("thisAspectInstance - 4");
}
public void testThisAspectInstance_239649_5() throws Exception {
// before advice, also using thisJoinPoint
runTest("thisAspectInstance - 5");
}
public void testThisAspectInstance_239649_6() throws Exception {
// before advice, also using thisEnclosingJoinPointStaticPart
runTest("thisAspectInstance - 6");
}
public void testThisAspectInstance_239649_7() throws Exception {
// before advice, also using thisJoinPoint and thisJoinPointStaticPart
runTest("thisAspectInstance - 7");
}
public void testThisAspectInstance_239649_8() throws Exception {
// before advice, also using abstract aspects
runTest("thisAspectInstance - 8");
}
public void testThisAspectInstance_239649_9() throws Exception {
// before advice, also using abstract aspects 2
runTest("thisAspectInstance - 9");
}
public void testThisAspectInstance_239649_10() throws Exception {
// aspects in a package
runTest("thisAspectInstance - 10");
}
public void testThisAspectInstance_239649_11() throws Exception {
// non-singleton aspect - should be an error for now
runTest("thisAspectInstance - 11");
}
public void testThisAspectInstance_239649_12() throws Exception {
// arg binding and tjpsp
runTest("thisAspectInstance - 12");
}
public void testThisAspectInstance_239649_13() throws Exception {
// pass instance
runTest("thisAspectInstance - 13");
}
public void testThisAspectInstance_239649_14() throws Exception {
// multiple ifs
runTest("thisAspectInstance - 14");
}
public void testThisAspectInstance_239649_15() throws Exception {
// abstract aspects
runTest("thisAspectInstance - 15");
}
public void testIsFinal_449739() {
runTest("is final");
}
public void testIsFinal_449739_2() {
runTest("is final - 2");
}
// ---
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(Ajc184Tests.class);
}
@Override
protected java.net.URL getSpecFile() {
return getClassResource("ajc184.xml");
}
}
|