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.

XMLBasedAjcTestCaseForJava9OrLater.java 926B

123456789101112131415161718192021222324252627282930
  1. /* *******************************************************************
  2. * Copyright (c) 2018 Contributors
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v 2.0
  6. * which accompanies this distribution and is available at
  7. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  8. *
  9. * Contributors:
  10. * Andy Clement
  11. * ******************************************************************/
  12. package org.aspectj.testing;
  13. import org.aspectj.util.LangUtil;
  14. /**
  15. * Makes sure tests are running on the right level of JDK.
  16. *
  17. * @author Andy Clement
  18. */
  19. public abstract class XMLBasedAjcTestCaseForJava9OrLater extends XMLBasedAjcTestCase {
  20. @Override
  21. public void setUp() throws Exception {
  22. if (!LangUtil.isVMGreaterOrEqual(9))
  23. throw new IllegalStateException("These tests should be run on Java 9 or later");
  24. super.setUp();
  25. }
  26. }