]> source.dussan.org Git - aspectj.git/commitdiff
pushed test method up
authorAndy Clement <aclement@gopivotal.com>
Mon, 12 May 2014 15:39:13 +0000 (08:39 -0700)
committerAndy Clement <aclement@gopivotal.com>
Mon, 12 May 2014 15:39:13 +0000 (08:39 -0700)
testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java
tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java

index 29ada27273e628c064eeb5afa39a68958b9cebf7..30e6dd55fb4985303c3f2be24fec357bc1b195ac 100644 (file)
@@ -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;
+       }
+
+       
 }
index c5836c83f8aaf8e19c3cd56796e8e33ddd89e74e..155792ca013c71c64c338ac175cac6e23a523f1a 100644 (file)
@@ -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;