1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /*******************************************************************************
- * 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");
- }
-
- }
|