Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Ajc181Tests.java 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*******************************************************************************
  2. * Copyright (c) 2014 Contributors
  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. * Andy Clement - initial API and implementation
  10. *******************************************************************************/
  11. package org.aspectj.systemtest.ajc181;
  12. import java.io.File;
  13. import junit.framework.Test;
  14. import org.aspectj.apache.bcel.classfile.Method;
  15. import org.aspectj.testing.XMLBasedAjcTestCase;
  16. /**
  17. * @author Andy Clement
  18. */
  19. public class Ajc181Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
  20. public void testParameterNamesAttribute_436531() {
  21. runTest("parameter names attribute");
  22. }
  23. public void testVariableNotInitialized_431976() {
  24. runTest("variable not initialized");
  25. }
  26. public void testThisEnclosingJoinPointStaticPartNotInitialized_431976() {
  27. runTest("thisEnclosingJoinPointStaticPart not initialized");
  28. }
  29. public void testLvarTable_435446() throws Exception {
  30. runTest("lvartable");
  31. }
  32. public void testBrokenAnnotations_377096() throws Exception {
  33. runTest("broken annotations");
  34. Method method = getMethodFromClass(getClassFrom(ajc.getSandboxDirectory(), "C"), "xxx");
  35. method.getAnnotations();
  36. }
  37. public void testDefaultMethods_433744() {
  38. runTest("default methods");
  39. }
  40. // ---
  41. public static Test suite() {
  42. return XMLBasedAjcTestCase.loadSuite(Ajc181Tests.class);
  43. }
  44. @Override
  45. protected File getSpecFile() {
  46. return new File("../tests/src/org/aspectj/systemtest/ajc181/ajc181.xml");
  47. }
  48. }