]> source.dussan.org Git - aspectj.git/blob - tests/src/test/java/org/aspectj/systemtest/ajc160/Ajc160Tests.java
31d2ba8eb8894b7291c751edf15f139a74439c15
[aspectj.git] / tests / src / test / java / org / aspectj / systemtest / ajc160 / Ajc160Tests.java
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
7  *
8  * Contributors:
9  *    Andy Clement - initial API and implementation
10  *******************************************************************************/
11 package org.aspectj.systemtest.ajc160;
12
13 import java.io.File;
14
15 import junit.framework.Test;
16
17 import org.aspectj.testing.XMLBasedAjcTestCase;
18
19 /**
20  * These are tests for AspectJ1.6.0
21  */
22 public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
23
24         // AspectJ1.6.0rc1
25         // public void testPipelineCompilationGenericReturnType_pr226567() {
26         // runTest("pipeline compilation and generic return type");
27         // }
28         public void testPipelineCompilationAnonymous_pr225916() {
29                 runTest("pipeline compilation and anonymous type");
30         }
31
32         public void testGenericITDs_pr214994() {
33                 runTest("generic itd");
34         }
35
36         public void testGenericDecpLtw_pr223605() {
37                 runTest("generic decp ltw");
38         }
39
40         public void testDuplicateITDsNPE_pr173602() {
41                 runTest("duplicate itd npe");
42         }
43
44         public void testLTWITDs_pr223094() {
45                 runTest("ltw inherited itds");
46         }
47
48         // public void testBrokenIfArgsCflowAtAj_pr145018() {
49         // runTest("ataj crashing with cflow, if and args");
50         // }
51         public void testClassCastOnArrayType_pr180264() {
52                 runTest("classcastexception on array type");
53         }
54
55         // public void testITDWithArray_pr201748() { runTest("itd with array");}
56         public void testBadMessage() {
57                 runTest("incorrect itd error with generics");
58         }
59
60         public void testBadMessage2() {
61                 runTest("incorrect itd error with generics - 2");
62         }
63
64         public void testHasMethodAnnoValueInt_various() {
65                 runTest("hasmethod anno value - I");
66         }
67
68         public void testHasMethodAnnoValueBoolean_various() {
69                 runTest("hasmethod anno value - Z");
70         }
71
72         public void testHasMethodAnnoValueString_various() {
73                 runTest("hasmethod anno value - S");
74         }
75
76         public void testGenericTypeParameterizedWithArrayType_pr167197() {
77                 runTest("generic type parameterized with array type");
78         }
79
80         public void testGenericTypeParameterizedWithArrayType_pr167197_2() {
81                 runTest("generic type parameterized with array type - 2");
82         }
83
84         // AspectJ1.6.0m2 and earlier
85         public void testBoundsCheckShouldFail_pr219298() {
86                 runTest("bounds check failure");
87         }
88
89         public void testBoundsCheckShouldFail_pr219298_2() {
90                 runTest("bounds check failure - 2");
91         }
92
93         public void testGenericMethodMatching_pr204505_1() {
94                 runTest("generics method matching - 1");
95         }
96
97         public void testGenericMethodMatching_pr204505_2() {
98                 runTest("generics method matching - 2");
99         }
100
101         public void testDecFieldProblem_pr218167() {
102                 runTest("dec field problem");
103         }
104
105         public void testGenericsSuperITD_pr206911() {
106                 runTest("generics super itd");
107         }
108
109         public void testGenericsSuperITD_pr206911_2() {
110                 runTest("generics super itd - 2");
111         }
112
113         public void testSerializationAnnotationStyle_pr216311() {
114                 runTest("serialization and annotation style");
115         }
116
117         public void testDecpRepetition_pr214559() {
118                 runTest("decp repetition problem");
119         } // all code in one file
120
121         public void testDecpRepetition_pr214559_2() {
122                 runTest("decp repetition problem - 2");
123         } // all code in one file, default package
124
125         public void testDecpRepetition_pr214559_3() {
126                 runTest("decp repetition problem - 3");
127         } // across multiple files
128
129         public void testISEAnnotations_pr209831() {
130                 runTest("illegal state exception with annotations");
131         }
132
133         public void testISEAnnotations_pr209831_2() {
134                 runTest("illegal state exception with annotations - 2");
135         }
136
137         // See HasMemberTypePattern.hasMethod()
138         // public void testHasMethodSemantics() { runTest("hasmethod semantics"); }
139
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");}
144
145         // ///////////////////////////////////////
146         public static Test suite() {
147                 return XMLBasedAjcTestCase.loadSuite(Ajc160Tests.class);
148         }
149
150         protected java.net.URL getSpecFile() {
151                 return getClassResource("ajc160.xml");
152         }
153
154 }