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.

Java22PreviewFeaturesTests.java 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*******************************************************************************
  2. * Copyright (c) 2024 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.ajc1922;
  9. import junit.framework.Test;
  10. import org.aspectj.systemtest.ajc10x.Ajc10xTests;
  11. import org.aspectj.testing.JavaVersionSpecificXMLBasedAjcTestCase;
  12. import org.aspectj.testing.XMLBasedAjcTestCase;
  13. /**
  14. * @author Alexander Kriegisch
  15. */
  16. public class Java22PreviewFeaturesTests extends JavaVersionSpecificXMLBasedAjcTestCase {
  17. public Java22PreviewFeaturesTests() {
  18. super(22, 22);
  19. }
  20. public void testStringPatterns() {
  21. runTest("string patterns");
  22. }
  23. public void testStringPatternsAspect() {
  24. runTest("string patterns aspect");
  25. }
  26. public void testNamedClassWithSimpleMainMethod() {
  27. runTest("named class with simple main method");
  28. }
  29. public void testNamedAspectWithSimpleMainMethod() {
  30. runTest("named aspect with simple main method");
  31. }
  32. public void testUnnamedClassWithSimpleMainMethod() {
  33. runTest("unnamed class with simple main method");
  34. }
  35. public static Test suite() {
  36. return XMLBasedAjcTestCase.loadSuite(Java22PreviewFeaturesTests.class);
  37. }
  38. @Override
  39. protected java.net.URL getSpecFile() {
  40. return getClassResource("ajc1922.xml");
  41. }
  42. }