Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

XMLBasedAjcTestCaseForJava9OrLater.java 961B

1234567891011121314151617181920212223242526272829303132
  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 v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  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 runTest(String title) {
  22. // Check we are on Java9 or later
  23. if (!LangUtil.is19VMOrGreater()) {
  24. throw new IllegalStateException("These tests should be run on Java 9 or later");
  25. }
  26. super.runTest(title);
  27. }
  28. }