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.

Bugs199Tests.java 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*******************************************************************************
  2. * Copyright (c) 2022 Contributors
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v 2.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  7. *******************************************************************************/
  8. package org.aspectj.systemtest.ajc199;
  9. import io.bmuskalla.system.properties.PropertyEnvironment;
  10. import io.bmuskalla.system.properties.ScopedSystemProperties;
  11. import junit.framework.Test;
  12. import org.aspectj.testing.XMLBasedAjcTestCase;
  13. /**
  14. * @author Alexander Kriegisch
  15. */
  16. public class Bugs199Tests extends XMLBasedAjcTestCase {
  17. public void testAnnotationStyleSpecialIfClauses() {
  18. runTest("annotation style A");
  19. }
  20. public void testAnnotationStylePointcutInheritanceWithIfClauses() {
  21. runTest("annotation style B");
  22. }
  23. public void testAnnotationStyleSpecialIfClauses2_gh120() {
  24. runTest("annotation style C");
  25. }
  26. public void testAnnotationStyleSpecialIfClauses3_gh120() {
  27. runTest("annotation style D");
  28. }
  29. public void testAnnotationStyleNegatedIf_gh122() {
  30. runTest("annotation style negated if");
  31. }
  32. public void testCompilerCanReopenClosedJARs_gh125() {
  33. try (PropertyEnvironment env = ScopedSystemProperties.newPropertyEnvironment()) {
  34. env.setProperty("org.aspectj.weaver.openarchives", "20");
  35. runTest("compiler can re-open closed JARs");
  36. }
  37. }
  38. public void testAsyncProceedNestedAroundAdvice_gh128() {
  39. runTest("asynchronous proceed for nested around-advice (@AspectJ)");
  40. }
  41. public void testAsyncProceedNestedAroundAdviceThreadPool_gh128() {
  42. // TODO: future improvement, see https://github.com/eclipse/org.aspectj/issues/141
  43. // runTest("asynchronous proceed for nested around-advice (@AspectJ, thread pool)");
  44. }
  45. public void testAsyncProceedNestedAroundAdviceNative_gh128() {
  46. runTest("asynchronous proceed for nested around-advice (native)");
  47. }
  48. public void testAsyncProceedNestedAroundAdviceNativeThreadPool_gh128() {
  49. runTest("asynchronous proceed for nested around-advice (native, thread pool)");
  50. }
  51. public void testAddExports_gh145() {
  52. runTest("use --add-exports");
  53. }
  54. public void testAddReads_gh145() {
  55. runTest("use --add-reads");
  56. }
  57. public void testAddModules_gh145() {
  58. runTest("use --add-modules");
  59. }
  60. public void testAddModulesJDK_gh145() {
  61. runTest("use --add-modules with non-public JDK module");
  62. }
  63. public static Test suite() {
  64. return XMLBasedAjcTestCase.loadSuite(Bugs199Tests.class);
  65. }
  66. @Override
  67. protected java.net.URL getSpecFile() {
  68. return getClassResource("ajc199.xml");
  69. }
  70. }