Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Bugs198Tests.java 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*******************************************************************************
  2. * Copyright (c) 2021 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.ajc198;
  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 Bugs198Tests extends XMLBasedAjcTestCase {
  17. public void testGitHub_105() {
  18. runTest("ITD annotation with mandatory parameter via aspectpath");
  19. }
  20. public void testAnnotationStyleSpecialIfClauses() {
  21. runTest("annotation style A");
  22. }
  23. public void testAnnotationStylePointcutInheritanceWithIfClauses() {
  24. runTest("annotation style B");
  25. }
  26. public void testAnnotationStyleSpecialIfClauses2_gh120() {
  27. runTest("annotation style C");
  28. }
  29. public void testAnnotationStyleSpecialIfClauses3_gh120() {
  30. runTest("annotation style D");
  31. }
  32. public void testAnnotationStyleNegatedIf_gh122() {
  33. runTest("annotation style negated if");
  34. }
  35. public void testGitHub_125() {
  36. try (PropertyEnvironment env = ScopedSystemProperties.newPropertyEnvironment()) {
  37. env.setProperty("org.aspectj.weaver.openarchives", "20");
  38. runTest("compiler can re-open closed JARs");
  39. }
  40. }
  41. public static Test suite() {
  42. return XMLBasedAjcTestCase.loadSuite(Bugs198Tests.class);
  43. }
  44. @Override
  45. protected java.net.URL getSpecFile() {
  46. return getClassResource("ajc198.xml");
  47. }
  48. }