diff options
author | Andy Clement <aclement@gopivotal.com> | 2014-05-12 08:39:13 -0700 |
---|---|---|
committer | Andy Clement <aclement@gopivotal.com> | 2014-05-12 08:39:13 -0700 |
commit | 4187b5f4f63254990957a120951281de851b8150 (patch) | |
tree | 973d4f628f333099d4868933f1a544480cf6ffe9 /testing | |
parent | b4592485d2358cffe07e9fab6578e8764734dd44 (diff) | |
download | aspectj-4187b5f4f63254990957a120951281de851b8150.tar.gz aspectj-4187b5f4f63254990957a120951281de851b8150.zip |
pushed test method up
Diffstat (limited to 'testing')
-rw-r--r-- | testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java | 13 |
1 files changed, 13 insertions, 0 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; + } + + } |