aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/aspectj/systemtest/ajc160/Ajc160Tests.java
blob: 133a117974e7add90a9b2da97a137dcd60ad1a8b (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
/*******************************************************************************
 * Copyright (c) 2007-2008 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://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Andy Clement - initial API and implementation
 *******************************************************************************/
package org.aspectj.systemtest.ajc160;

import org.aspectj.testing.XMLBasedAjcTestCase;

import junit.framework.Test;

/**
 * These are tests for AspectJ1.6.0
 */
public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase {

	// AspectJ1.6.0rc1
	// public void testPipelineCompilationGenericReturnType_pr226567() {
	// runTest("pipeline compilation and generic return type");
	// }
	public void testPipelineCompilationAnonymous_pr225916() {
		runTest("pipeline compilation and anonymous type");
	}

	public void testGenericITDs_pr214994() {
		runTest("generic itd");
	}

	public void testGenericDecpLtw_pr223605() {
		runTest("generic decp ltw");
	}

	public void testDuplicateITDsNPE_pr173602() {
		runTest("duplicate itd npe");
	}

	public void testLTWITDs_pr223094() {
		runTest("ltw inherited itds");
	}

	// public void testBrokenIfArgsCflowAtAj_pr145018() {
	// runTest("ataj crashing with cflow, if and args");
	// }
	public void testClassCastOnArrayType_pr180264() {
		runTest("classcastexception on array type");
	}

	// public void testITDWithArray_pr201748() { runTest("itd with array");}
	public void testBadMessage() {
		runTest("incorrect itd error with generics");
	}

	public void testBadMessage2() {
		runTest("incorrect itd error with generics - 2");
	}

	public void testHasMethodAnnoValueInt_various() {
		runTest("hasmethod anno value - I");
	}

	public void testHasMethodAnnoValueBoolean_various() {
		runTest("hasmethod anno value - Z");
	}

	public void testHasMethodAnnoValueString_various() {
		runTest("hasmethod anno value - S");
	}

	public void testGenericTypeParameterizedWithArrayType_pr167197() {
		runTest("generic type parameterized with array type");
	}

	public void testGenericTypeParameterizedWithArrayType_pr167197_2() {
		runTest("generic type parameterized with array type - 2");
	}

	// AspectJ1.6.0m2 and earlier
	public void testBoundsCheckShouldFail_pr219298() {
		runTest("bounds check failure");
	}

	public void testBoundsCheckShouldFail_pr219298_2() {
		runTest("bounds check failure - 2");
	}

	public void testGenericMethodMatching_pr204505_1() {
		runTest("generics method matching - 1");
	}

	public void testGenericMethodMatching_pr204505_2() {
		runTest("generics method matching - 2");
	}

	public void testDecFieldProblem_pr218167() {
		runTest("dec field problem");
	}

	public void testGenericsSuperITD_pr206911() {
		runTest("generics super itd");
	}

	public void testGenericsSuperITD_pr206911_2() {
		runTest("generics super itd - 2");
	}

	public void testSerializationAnnotationStyle_pr216311() {
		runTest("serialization and annotation style");
	}

	public void testDecpRepetition_pr214559() {
		runTest("decp repetition problem");
	} // all code in one file

	public void testDecpRepetition_pr214559_2() {
		runTest("decp repetition problem - 2");
	} // all code in one file, default package

	public void testDecpRepetition_pr214559_3() {
		runTest("decp repetition problem - 3");
	} // across multiple files

	public void testISEAnnotations_pr209831() {
		runTest("illegal state exception with annotations");
	}

	public void testISEAnnotations_pr209831_2() {
		runTest("illegal state exception with annotations - 2");
	}

	// See HasMemberTypePattern.hasMethod()
	// public void testHasMethodSemantics() { runTest("hasmethod semantics"); }

	// See BcelTypeMunger line 786 relating to these
	// String sig = interMethodDispatcher.getSignature();BROKE - should get the generic signature here and use that.
	// public void testITDLostGenerics_pr211146() { runTest("itd lost generic signature");}
	// public void testITDLostGenerics_pr211146_2() { runTest("itd lost generic signature - field");}

	// ///////////////////////////////////////
	public static Test suite() {
		return XMLBasedAjcTestCase.loadSuite(Ajc160Tests.class);
	}

	protected java.net.URL getSpecFile() {
		return getClassResource("ajc160.xml");
	}

}