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

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