From: Andy Clement Date: Mon, 12 May 2014 15:39:13 +0000 (-0700) Subject: pushed test method up X-Git-Tag: V1_8_1~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4187b5f4f63254990957a120951281de851b8150;p=aspectj.git pushed test method up --- diff --git a/testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java b/testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java index 29ada2727..30e6dd55f 100644 --- a/testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java +++ b/testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java @@ -417,4 +417,17 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase { } } + + protected Method getMethodFromClass(JavaClass clazz, String methodName) { + Method[] meths = clazz.getMethods(); + for (int i = 0; i < meths.length; i++) { + Method method = meths[i]; + if (method.getName().equals(methodName)) { + return meths[i]; + } + } + return null; + } + + } diff --git a/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java b/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java index c5836c83f..155792ca0 100644 --- a/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java @@ -420,17 +420,6 @@ public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase { return new File("../tests/src/org/aspectj/systemtest/ajc164/ajc164.xml"); } - private Method getMethodFromClass(JavaClass clazz, String methodName) { - Method[] meths = clazz.getMethods(); - for (int i = 0; i < meths.length; i++) { - Method method = meths[i]; - if (method.getName().equals(methodName)) { - return meths[i]; - } - } - return null; - } - private IProgramElement findElementAtLine(IProgramElement whereToLook, int line) { if (whereToLook == null) { return null;