aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Clement <aclement@gopivotal.com>2014-05-12 08:39:13 -0700
committerAndy Clement <aclement@gopivotal.com>2014-05-12 08:39:13 -0700
commit4187b5f4f63254990957a120951281de851b8150 (patch)
tree973d4f628f333099d4868933f1a544480cf6ffe9
parentb4592485d2358cffe07e9fab6578e8764734dd44 (diff)
downloadaspectj-4187b5f4f63254990957a120951281de851b8150.tar.gz
aspectj-4187b5f4f63254990957a120951281de851b8150.zip
pushed test method up
-rw-r--r--testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java13
-rw-r--r--tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java11
2 files changed, 13 insertions, 11 deletions
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;