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.

Bugs1919Tests.java 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.ajc1919;
  9. import junit.framework.Test;
  10. import org.aspectj.testing.XMLBasedAjcTestCase;
  11. /**
  12. * @author Alexander Kriegisch
  13. */
  14. public class Bugs1919Tests extends XMLBasedAjcTestCase {
  15. public void testDeclareAnnotationWithSourceRetention() {
  16. runTest("declare annotation with SOURCE retention");
  17. }
  18. public void testSwitchWith_Integer_MAX_VALUE() {
  19. runTest("switch with Integer.MAX_VALUE case");
  20. }
  21. public void testParenthesisedExpressionWithAjKeyword() {
  22. runTest("parenthesised expression with AspectJ keyword");
  23. }
  24. public void testInterfaceInnerAspectImplicitlyStatic() {
  25. runTest("inner aspect of interface is implicitly static");
  26. }
  27. public static Test suite() {
  28. return XMLBasedAjcTestCase.loadSuite(Bugs1919Tests.class);
  29. }
  30. @Override
  31. protected java.net.URL getSpecFile() {
  32. return getClassResource("ajc1919.xml");
  33. }
  34. }