blob: 055f45c3611f624d6d091a4420cc8f2aea31dad6 (
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
|
/*******************************************************************************
* Copyright (c) 2016 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.ajc189;
import org.aspectj.apache.bcel.classfile.JavaClass;
import org.aspectj.testing.XMLBasedAjcTestCase;
import junit.framework.Test;
/**
* @author Andy Clement
*/
public class Ajc189Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public void testJarWeaving_433351() {
runTest("jar weaving");
}
public void testJarWeaving_433351_4() {
runTest("jar weaving 4");
}
public void testJarWeaving_433351_3() {
runTest("jar weaving 3");
}
public void testJarWeaving_433351_2() {
runTest("jar weaving 2");
}
public void testNPEAtAspectJ() throws Exception {
runTest("NPE at aspectj");
}
public void testLostBounds() throws Exception {
runTest("lost bounds");
// This type has I added via declare parents
JavaClass jc = getClassFrom(ajc.getSandboxDirectory(), "B");
assertEquals("<T:LSomeClass;:LSomeInterface;>LC<TT;>;Ljava/io/Serializable;LI;",jc.getGenericSignature());
jc = getClassFrom(ajc.getSandboxDirectory(), "D");
assertEquals("<T::LSomeInterface;:LSomeOtherInterface;>Ljava/lang/Object;LI;",jc.getGenericSignature());
}
public void testWhileNPE_486203() throws Exception {
runTest("while npe");
}
// public void testOverweaving_352389() throws Exception {
// runTest("overweaving");
// }
// ---
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(Ajc189Tests.class);
}
@Override
protected java.net.URL getSpecFile() {
return getClassResource("ajc189.xml");
}
}
|