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.

Ajc192Tests.java 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*******************************************************************************
  2. * Copyright (c) 2018 Contributors
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors:
  9. * Andy Clement - initial API and implementation
  10. *******************************************************************************/
  11. package org.aspectj.systemtest.ajc192;
  12. import java.io.File;
  13. import org.aspectj.testing.XMLBasedAjcTestCase;
  14. import junit.framework.Test;
  15. /**
  16. * @author Andy Clement
  17. */
  18. public class Ajc192Tests extends XMLBasedAjcTestCase {
  19. public void testCflowFinal() {
  20. runTest("no final on cflow elements");
  21. }
  22. // TODO Still to be fixed, the workaround to not mix style is good enough for now...
  23. public void xtestAroundAdvice_AnnoStyle() {
  24. runTest("around advice");
  25. }
  26. public void testAroundAdvice_CodeStyle() {
  27. runTest("around advice - 2");
  28. }
  29. public void testPTW_nonPrivileged() {
  30. runTest("ptw");
  31. }
  32. public void testPTW_nonPrivilegedSamePackage() {
  33. runTest("ptw - same package");
  34. }
  35. public void testPTW_privileged() {
  36. runTest("ptw - privileged");
  37. }
  38. public void testPTWW_privilegedSamePackage() {
  39. runTest("ptw - privileged same package");
  40. }
  41. // ---
  42. public static Test suite() {
  43. return XMLBasedAjcTestCase.loadSuite(Ajc192Tests.class);
  44. }
  45. @Override
  46. protected File getSpecFile() {
  47. return getClassResource("ajc192.xml");
  48. }
  49. }