選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

DesignTests.java 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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.design;
  11. import java.io.File;
  12. import junit.framework.Test;
  13. import org.aspectj.testing.XMLBasedAjcTestCase;
  14. public class DesignTests extends org.aspectj.testing.XMLBasedAjcTestCase {
  15. public static Test suite() {
  16. return XMLBasedAjcTestCase.loadSuite(DesignTests.class);
  17. }
  18. protected File getSpecFile() {
  19. return new File("../tests/src/org/aspectj/systemtest/design/design.xml");
  20. }
  21. public void test001(){
  22. runTest("initial tests for new introduction style");
  23. }
  24. public void test002(){
  25. runTest("overriding of introduced methods and accessibility");
  26. }
  27. public void test003(){
  28. runTest("within and introductions behaves correctly");
  29. }
  30. public void test004(){
  31. runTest("correct inheritance of multiple concrete methods");
  32. }
  33. public void test005(){
  34. runTest("errors in inheritance of multiple concrete methods");
  35. }
  36. public void test006(){
  37. runTest("declared exceptions are checked correctly on intros (errors)");
  38. }
  39. public void test007(){
  40. runTest("declared exceptions are checked correctly on intros");
  41. }
  42. public void test008(){
  43. runTest("Joinpoint is not created for foo(String) when before() advice is present.");
  44. }
  45. public void test009(){
  46. runTest("more tests of eachobject with some difficult typing issues");
  47. }
  48. public void test010(){
  49. runTest("eachobject: eachobject(receptions(...)) [eachobject]");
  50. }
  51. public void test011(){
  52. runTest("Checking new joinpoints");
  53. }
  54. public void test012(){
  55. runTest("eachobject: simple test [eachobject] (still)");
  56. }
  57. public void test013(){
  58. runTest("scope issues with introduction (needs more work)");
  59. }
  60. // uncomment this test if we implement 42743
  61. // public void test014_DeclareSoft(){
  62. // runTest("declare soft limitation");
  63. // }
  64. }