Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

XMLBasedAjcTestCaseForJava11OrLater.java 927B

12345678910111213141516171819202122232425262728293031
  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 XMLBasedAjcTestCaseForJava11OrLater extends XMLBasedAjcTestCase {
  20. @Override
  21. public void runTest(String title) {
  22. if (!LangUtil.is11VMOrGreater()) {
  23. throw new IllegalStateException("These tests should be run on Java 11 or later");
  24. }
  25. super.runTest(title);
  26. }
  27. }