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.

Ajc196PreviewFeaturesTests.java 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/epl-v10.html
  7. *******************************************************************************/
  8. package org.aspectj.systemtest.ajc196;
  9. import org.aspectj.testing.XMLBasedAjcTestCase;
  10. import org.aspectj.testing.XMLBasedAjcTestCaseForJava14Only;
  11. import junit.framework.Test;
  12. /**
  13. * @author Alexander Kriegisch
  14. */
  15. public class Ajc196PreviewFeaturesTests extends XMLBasedAjcTestCaseForJava14Only {
  16. public void testRecords2() {
  17. runTest("using a record");
  18. }
  19. public void testInstanceofPatterns() {
  20. runTest("instanceof patterns");
  21. }
  22. public void testAdvisingRecords() {
  23. runTest("advising records");
  24. }
  25. public void testTextBlock1() {
  26. runTest("textblock 1");
  27. }
  28. public void testTextBlock2() {
  29. runTest("textblock 2");
  30. }
  31. // ---
  32. public static Test suite() {
  33. return XMLBasedAjcTestCase.loadSuite(Ajc196PreviewFeaturesTests.class);
  34. }
  35. @Override
  36. protected java.net.URL getSpecFile() {
  37. return getClassResource("ajc196.xml");
  38. }
  39. }