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.

AnnotationRuntimeTests.java 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*******************************************************************************
  2. * Copyright (c) 2004 IBM Corporation and others.
  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. * IBM Corporation - initial API and implementation
  10. *******************************************************************************/
  11. package org.aspectj.systemtest.ajc150;
  12. import org.aspectj.testing.XMLBasedAjcTestCase;
  13. import junit.framework.Test;
  14. /**
  15. * Tests for @this, @target, @args
  16. */
  17. public class AnnotationRuntimeTests extends XMLBasedAjcTestCase {
  18. public static Test suite() {
  19. return XMLBasedAjcTestCase.loadSuite(AnnotationRuntimeTests.class);
  20. }
  21. protected java.net.URL getSpecFile() {
  22. return getClassResource("ajc150.xml");
  23. }
  24. // No longer a limitation ASC 31Jan05
  25. // public void test001_BindingWithAtTargetAllowed() {
  26. // CompilationResult cR = binaryWeave("TestingAnnotations.jar","BindingWithAtTarget.aj",0,0);
  27. // List errors = cR.getErrorMessages();
  28. // RunResult rR = run("TestingAnnotations");
  29. // System.err.println(rR.getStdErr());
  30. // }
  31. public void test002_MustHaveRuntimeRetention() {
  32. runTest("must have runtime retention");
  33. }
  34. public void test003_InheritableOrNot() {
  35. runTest("inheritable or not");
  36. }
  37. public void test004_CantUseinDecEoW() {
  38. runTest("use of @this/target in deow");
  39. }
  40. public void test005_ArgsSuite() {
  41. runTest("@args tests");
  42. }
  43. public void test006_CantUseinDecEoW() {
  44. runTest("use of @args in deow");
  45. }
  46. }