Have you checked the ClassPool object can access BeforeMethod?
Please try:
method.getDeclaringClass().getClassPool().get("org.testng...BeforeMethod")
If this returns null, the ClassPool does not know how to obtain the class file. Maybe the
appended class path is wrong. Otherwise, something I don't know is happening.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235223#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...