You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IndyTests.java 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*******************************************************************************
  2. * Copyright (c) 2008 Contributors
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors:
  9. * Andy Clement - initial API and implementation
  10. *******************************************************************************/
  11. package org.aspectj.systemtest.ajc170;
  12. import java.io.File;
  13. import java.io.IOException;
  14. import junit.framework.Test;
  15. import org.aspectj.testing.XMLBasedAjcTestCase;
  16. /**
  17. * @author Andy Clement
  18. */
  19. public class IndyTests extends org.aspectj.testing.XMLBasedAjcTestCase {
  20. // staticinitialization on bytecode containing methodtyperef/methodhandle/bootstrapmethods/invokedynamic
  21. public void testInvokeDynamic_staticinitialization() throws IOException {
  22. runTest("indy - 1");
  23. }
  24. // execution pointcuts on same bytecode
  25. public void testInvokeDynamic_execution() throws IOException {
  26. runTest("indy - 2");
  27. }
  28. // call pointcuts on same bytecode
  29. public void testInvokeDynamic_call() throws IOException {
  30. runTest("indy - 3");
  31. }
  32. // within(Code1) on same bytecode
  33. public void testInvokeDynamic_target() throws IOException {
  34. runTest("indy - 4");
  35. }
  36. // ---
  37. public static Test suite() {
  38. return XMLBasedAjcTestCase.loadSuite(IndyTests.class);
  39. }
  40. @Override
  41. protected File getSpecFile() {
  42. return new File("../tests/src/org/aspectj/systemtest/ajc170/indy.xml");
  43. }
  44. }