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.8KB

преди 19 години
преди 18 години
преди 19 години
преди 18 години
преди 19 години
преди 19 години
преди 19 години
преди 19 години
преди 19 години
преди 19 години
преди 19 години
преди 19 години
преди 19 години
преди 19 години
преди 19 години
преди 19 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 java.io.File;
  13. import junit.framework.Test;
  14. import org.aspectj.testing.XMLBasedAjcTestCase;
  15. /**
  16. * Tests for @this, @target, @args
  17. */
  18. public class AnnotationRuntimeTests extends XMLBasedAjcTestCase {
  19. public static Test suite() {
  20. return XMLBasedAjcTestCase.loadSuite(AnnotationRuntimeTests.class);
  21. }
  22. protected File getSpecFile() {
  23. return new File("../tests/src/org/aspectj/systemtest/ajc150/ajc150.xml");
  24. }
  25. // No longer a limitation ASC 31Jan05
  26. // public void test001_BindingWithAtTargetAllowed() {
  27. // CompilationResult cR = binaryWeave("TestingAnnotations.jar","BindingWithAtTarget.aj",0,0);
  28. // List errors = cR.getErrorMessages();
  29. // RunResult rR = run("TestingAnnotations");
  30. // System.err.println(rR.getStdErr());
  31. // }
  32. public void test002_MustHaveRuntimeRetention() {
  33. runTest("must have runtime retention");
  34. }
  35. public void test003_InheritableOrNot() {
  36. runTest("inheritable or not");
  37. }
  38. public void test004_CantUseinDecEoW() {
  39. runTest("use of @this/target in deow");
  40. }
  41. public void test005_ArgsSuite() {
  42. runTest("@args tests");
  43. }
  44. public void test006_CantUseinDecEoW() {
  45. runTest("use of @args in deow");
  46. }
  47. }