blob: edfd9ad719c636f3d8302d2ed827910f287b015d (
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
|
/* *******************************************************************
* Copyright (c) 2004 IBM Corporation
* 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
*
* ******************************************************************/
package org.aspectj.systemtest.java14;
import org.aspectj.testing.XMLBasedAjcTestCase;
import org.aspectj.util.LangUtil;
import junit.framework.Test;
public class Java14Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(Java14Tests.class);
}
protected java.net.URL getSpecFile() {
return getClassResource("java14.xml");
}
public void test001(){
runTest("assert flow");
}
public void test002(){
runTest("assert flow - 2");
}
public void test003(){
runTest("assert typing");
}
// bug in eclipse compiler, moved to ajcTestsFailing.xml
// public void test004(){
// runTest("assert coverage tests [requires 1.4]");
// }
// bug in eclipse compiler, moved to ajcTestsFailing.xml
// public void test005(){
// runTest("assert coverage tests in one package [requires 1.4]");
// }
public void test006(){
if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 006 not >=1.4");return;}
runTest("compiling asserts in methods");
}
public void test007(){
if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 007 not >=1.4");return;}
runTest("asserts");
}
public void test008(){
if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 008 not >=1.4");return;}
runTest("asserts in aspect and declared methods [requires 1.4]");
}
public void test009(){
runTest("Does the matrix coverage thing for the new method signatures");
}
public void test010(){
runTest("correct types of parameters at call-sites");
}
public void test011(){
runTest("target type matching with messy interface hierarchies");
}
public void test012(){
if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 012 not >=1.4");return;}
runTest("assert tests in introduction [requires 1.4]");
}
public void test013(){
runTest("various forms of package name pattern matching work");
}
public void test014(){
if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 014 not >=1.4");return;}
runTest("assert statement in advice coverage [requires 1.4]");
}
public void test015(){
if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 015 not >=1.4");return;}
runTest("assert statement in advice [requires 1.4]");
}
public void test016(){
if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 016 not >=1.4");return;}
runTest("assert and pertarget crashes compiler");
}
public void test017(){
if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 017 not >=1.4");return;}
runTest("testing that assert works like .class");
}
public void test018(){
runTest("JoinPoint Optimization when targetting 1.4");
}
public void test019(){
runTest("XLint warning for call PCD's using subtype of defining type (-1.4 -Xlint:ignore)");
}
// public void test020(){
// runTest("XLint warning for call PCD's using subtype of defining type (-1.4)");
// }
public void test021(){
if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 021 not >=1.4");return;}
runTest("Class Literals as non final fields (also assert, and this$0)");
}
}
|