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.

SUIDTests.java 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /* *******************************************************************
  2. * Copyright (c) 2004 IBM Corporation
  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. * ******************************************************************/
  10. package org.aspectj.systemtest.serialVerUID;
  11. import java.io.File;
  12. import junit.framework.Test;
  13. import org.aspectj.testing.XMLBasedAjcTestCase;
  14. public class SUIDTests extends org.aspectj.testing.XMLBasedAjcTestCase {
  15. public static Test suite() {
  16. return XMLBasedAjcTestCase.loadSuite(SUIDTests.class);
  17. }
  18. protected File getSpecFile() {
  19. return new File("../tests/src/org/aspectj/systemtest/serialVerUID/serialVerUID.xml");
  20. }
  21. public void test001(){
  22. runTest("SUID: Before execution advice");
  23. }
  24. public void test002(){
  25. runTest("SUID: Around execution advice");
  26. }
  27. public void test003(){
  28. runTest("SUID: Around closure execution advice (-Xlint:ignore)");
  29. }
  30. public void test004(){
  31. runTest("SUID: Around closure execution advice");
  32. }
  33. public void test005(){
  34. runTest("SUID: thisJoinPoint");
  35. }
  36. public void test006(){
  37. runTest("SUID: thisJoinPoint with clinit method");
  38. }
  39. public void test007(){
  40. runTest("SUID: After returning staticinitialization advice");
  41. }
  42. public void test008(){
  43. runTest("SUID: After returning staticinitialization advice with serialVersionUID field");
  44. }
  45. public void test009(){
  46. runTest("SUID: ITD field");
  47. }
  48. public void test010(){
  49. runTest("SUID: ITD method");
  50. }
  51. public void test011(){
  52. runTest("SUID: Declare extends");
  53. }
  54. public void test012(){
  55. runTest("SUID: Declare implements (compile)");
  56. }
  57. public void test013(){
  58. runTest("SUID: Declare implements non-Serializable (compile)");
  59. }
  60. public void test014(){
  61. runTest("SUID: Declare implements Serializable (compile)");
  62. }
  63. public void test015(){
  64. runTest("SUID: Declare implements (weave)");
  65. }
  66. public void test016(){
  67. runTest("SUID: Priviliged aspect");
  68. }
  69. public void test017(){
  70. runTest("SUID: Perthis aspect");
  71. }
  72. }