aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java
blob: bffa739eaee50d8aaabdaeee2135b629ebc2f9f3 (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
/*******************************************************************************
 * 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 java.io.File;

import junit.framework.Test;

import org.aspectj.testing.XMLBasedAjcTestCase;

/**
 * These are tests for AspectJ1.6.0
 */
public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
	
	// AspectJ1.6.0rc1
    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 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 File getSpecFile() {
    return new File("../tests/src/org/aspectj/systemtest/ajc160/ajc160.xml");
  }
  
}