blob: 4aaafa10ba17a9a9bd9638d58bcf8640663c9c11 (
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
|
/*******************************************************************************
* Copyright (c) 2008 Contributors
* 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:
* Andy Clement - initial API and implementation
*******************************************************************************/
package org.aspectj.systemtest.ajc170;
import java.io.IOException;
import org.aspectj.testing.XMLBasedAjcTestCase;
import junit.framework.Test;
/**
* @author Andy Clement
*/
public class IndyTests extends org.aspectj.testing.XMLBasedAjcTestCase {
// staticinitialization on bytecode containing methodtyperef/methodhandle/bootstrapmethods/invokedynamic
public void testInvokeDynamic_staticinitialization() throws IOException {
runTest("indy - 1");
}
// execution pointcuts on same bytecode
public void testInvokeDynamic_execution() throws IOException {
runTest("indy - 2");
}
// call pointcuts on same bytecode
public void testInvokeDynamic_call() throws IOException {
runTest("indy - 3");
}
// within(Code1) on same bytecode
public void testInvokeDynamic_target() throws IOException {
runTest("indy - 4");
}
// ---
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(IndyTests.class);
}
@Override
protected java.net.URL getSpecFile() {
return getClassResource("indy.xml");
// return new File("../tests/src/org/aspectj/systemtest/ajc170/indy.xml");
}
}
|