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.

InPathTests.java 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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.inpath;
  11. import java.io.File;
  12. import junit.framework.Test;
  13. import org.aspectj.testing.XMLBasedAjcTestCase;
  14. public class InPathTests extends org.aspectj.testing.XMLBasedAjcTestCase {
  15. public static Test suite() {
  16. return XMLBasedAjcTestCase.loadSuite(InPathTests.class);
  17. }
  18. protected File getSpecFile() {
  19. return new File("../tests/src/org/aspectj/systemtest/inpath/inpath.xml");
  20. }
  21. public void test001(){
  22. runTest("source for options -injars");
  23. }
  24. public void test002(){
  25. runTest("options -injars");
  26. }
  27. public void test003(){
  28. runTest("options -injars checking declare parents interactions");
  29. }
  30. // test removed from suite since aspects are *always* generated reweavable
  31. // public void test004(){
  32. // runTest("The compiler crashes when using aspect libraries created without using -terminateAfterCompilation");
  33. // }
  34. public void test005(){
  35. runTest("declare warnings on main");
  36. }
  37. public void test006(){
  38. runTest("declare warnings on binary javac 1.4 classes");
  39. }
  40. public void test007(){
  41. runTest("declare warnings on binary ajc 1.1 classes");
  42. }
  43. public void test008(){
  44. runTest("Weaving rt.jar results in stack overflow");
  45. }
  46. public void test009(){
  47. runTest("Weaving failure when using injars (no jars)");
  48. }
  49. public void test010(){
  50. runTest("Weaving failure when using injars (on aspectpath)");
  51. }
  52. public void test011(){
  53. runTest("Weaving failure when using injars (on classpath)");
  54. }
  55. public void test012(){
  56. runTest("Weaving failure when using injars (actual injars)");
  57. }
  58. public void test013(){
  59. runTest("Introduced abstract method on interface not implemented by subtype (injars)");
  60. }
  61. public void test014(){
  62. runTest("error Type mismatch: cannot convert from java.lang.String to java.lang.String");
  63. }
  64. public void test015(){
  65. runTest("declare error binary-weaving NPE");
  66. }
  67. public void test016(){
  68. runTest("declare error binary-weaving NPE");
  69. }
  70. public void test017(){
  71. runTest("Regression from 1.1: NPE in CompilationResult");
  72. }
  73. }