blob: 9e64f2df932d8ff3f1e35093b003bbebfffe53fc (
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
|
/*******************************************************************************
* Copyright (c) 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.aspectj.systemtest.ajc150;
import org.aspectj.testing.XMLBasedAjcTestCase;
import junit.framework.Test;
/**
* Tests for @this, @target, @args
*/
public class AnnotationRuntimeTests extends XMLBasedAjcTestCase {
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(AnnotationRuntimeTests.class);
}
protected java.net.URL getSpecFile() {
return getClassResource("ajc150.xml");
}
// No longer a limitation ASC 31Jan05
// public void test001_BindingWithAtTargetAllowed() {
// CompilationResult cR = binaryWeave("TestingAnnotations.jar","BindingWithAtTarget.aj",0,0);
// List errors = cR.getErrorMessages();
// RunResult rR = run("TestingAnnotations");
// System.err.println(rR.getStdErr());
// }
public void test002_MustHaveRuntimeRetention() {
runTest("must have runtime retention");
}
public void test003_InheritableOrNot() {
runTest("inheritable or not");
}
public void test004_CantUseinDecEoW() {
runTest("use of @this/target in deow");
}
public void test005_ArgsSuite() {
runTest("@args tests");
}
public void test006_CantUseinDecEoW() {
runTest("use of @args in deow");
}
}
|