aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/org/aspectj/systemtest/ajc170/IndyTests.java
blob: 5846a66fd078ab689f1af9ec7a355bb5f2318d4f (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 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.ajc170;

import java.io.File;
import java.io.IOException;

import junit.framework.Test;

import org.aspectj.testing.XMLBasedAjcTestCase;

/**
 * @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 File getSpecFile() {
		return new File("../tests/src/org/aspectj/systemtest/ajc170/indy.xml");
	}

}