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.

Ajc196Tests.java 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*******************************************************************************
  2. * Copyright (c) 2020 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.ajc196;
  9. import org.aspectj.apache.bcel.Constants;
  10. import org.aspectj.testing.XMLBasedAjcTestCase;
  11. import org.aspectj.testing.XMLBasedAjcTestCaseForJava14OrLater;
  12. import junit.framework.Test;
  13. /**
  14. * @author Andy Clement
  15. */
  16. public class Ajc196Tests extends XMLBasedAjcTestCaseForJava14OrLater {
  17. public void testNPE_558995() {
  18. runTest("early resolution of supporting interfaces");
  19. }
  20. public void testSwitch1() {
  21. runTest("switch 1");
  22. checkVersion("Switch1", Constants.ClassFileVersion.of(14).MAJOR, 0);
  23. }
  24. public void testSwitch2() {
  25. runTest("switch 2");
  26. checkVersion("Switch2", Constants.ClassFileVersion.of(14).MAJOR, 0);
  27. }
  28. public void testSwitch3() {
  29. runTest("switch 3");
  30. checkVersion("Switch3", Constants.ClassFileVersion.of(14).MAJOR, 0);
  31. }
  32. public static Test suite() {
  33. return XMLBasedAjcTestCase.loadSuite(Ajc196Tests.class);
  34. }
  35. @Override
  36. protected java.net.URL getSpecFile() {
  37. return getClassResource("ajc196.xml");
  38. }
  39. }