1 /*******************************************************************************
2 * Copyright (c) 2007-2008 Contributors
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Andy Clement - initial API and implementation
10 *******************************************************************************/
11 package org.aspectj.systemtest.ajc160;
15 import junit.framework.Test;
17 import org.aspectj.testing.XMLBasedAjcTestCase;
20 * These are tests for AspectJ1.6.0
22 public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
25 // public void testPipelineCompilationGenericReturnType_pr226567() {
26 // runTest("pipeline compilation and generic return type");
28 public void testPipelineCompilationAnonymous_pr225916() {
29 runTest("pipeline compilation and anonymous type");
32 public void testGenericITDs_pr214994() {
33 runTest("generic itd");
36 public void testGenericDecpLtw_pr223605() {
37 runTest("generic decp ltw");
40 public void testDuplicateITDsNPE_pr173602() {
41 runTest("duplicate itd npe");
44 public void testLTWITDs_pr223094() {
45 runTest("ltw inherited itds");
48 // public void testBrokenIfArgsCflowAtAj_pr145018() {
49 // runTest("ataj crashing with cflow, if and args");
51 public void testClassCastOnArrayType_pr180264() {
52 runTest("classcastexception on array type");
55 // public void testITDWithArray_pr201748() { runTest("itd with array");}
56 public void testBadMessage() {
57 runTest("incorrect itd error with generics");
60 public void testBadMessage2() {
61 runTest("incorrect itd error with generics - 2");
64 public void testHasMethodAnnoValueInt_various() {
65 runTest("hasmethod anno value - I");
68 public void testHasMethodAnnoValueBoolean_various() {
69 runTest("hasmethod anno value - Z");
72 public void testHasMethodAnnoValueString_various() {
73 runTest("hasmethod anno value - S");
76 public void testGenericTypeParameterizedWithArrayType_pr167197() {
77 runTest("generic type parameterized with array type");
80 public void testGenericTypeParameterizedWithArrayType_pr167197_2() {
81 runTest("generic type parameterized with array type - 2");
84 // AspectJ1.6.0m2 and earlier
85 public void testBoundsCheckShouldFail_pr219298() {
86 runTest("bounds check failure");
89 public void testBoundsCheckShouldFail_pr219298_2() {
90 runTest("bounds check failure - 2");
93 public void testGenericMethodMatching_pr204505_1() {
94 runTest("generics method matching - 1");
97 public void testGenericMethodMatching_pr204505_2() {
98 runTest("generics method matching - 2");
101 public void testDecFieldProblem_pr218167() {
102 runTest("dec field problem");
105 public void testGenericsSuperITD_pr206911() {
106 runTest("generics super itd");
109 public void testGenericsSuperITD_pr206911_2() {
110 runTest("generics super itd - 2");
113 public void testSerializationAnnotationStyle_pr216311() {
114 runTest("serialization and annotation style");
117 public void testDecpRepetition_pr214559() {
118 runTest("decp repetition problem");
119 } // all code in one file
121 public void testDecpRepetition_pr214559_2() {
122 runTest("decp repetition problem - 2");
123 } // all code in one file, default package
125 public void testDecpRepetition_pr214559_3() {
126 runTest("decp repetition problem - 3");
127 } // across multiple files
129 public void testISEAnnotations_pr209831() {
130 runTest("illegal state exception with annotations");
133 public void testISEAnnotations_pr209831_2() {
134 runTest("illegal state exception with annotations - 2");
137 // See HasMemberTypePattern.hasMethod()
138 // public void testHasMethodSemantics() { runTest("hasmethod semantics"); }
140 // See BcelTypeMunger line 786 relating to these
141 // String sig = interMethodDispatcher.getSignature();BROKE - should get the generic signature here and use that.
142 // public void testITDLostGenerics_pr211146() { runTest("itd lost generic signature");}
143 // public void testITDLostGenerics_pr211146_2() { runTest("itd lost generic signature - field");}
145 // ///////////////////////////////////////
146 public static Test suite() {
147 return XMLBasedAjcTestCase.loadSuite(Ajc160Tests.class);
150 protected java.net.URL getSpecFile() {
151 return getClassResource("ajc160.xml");