1 22 package org.jboss.test.aop.stress.methodinvocation; 23 24 import java.lang.reflect.Field ; 25 import java.lang.reflect.Method ; 26 27 import org.jboss.aop.util.ReflectToJavassist; 28 import org.jboss.test.aop.stress.Scenario; 29 import org.jboss.test.aop.stress.ScenarioTest; 30 31 36 public class MethodInvocationTestCase extends ScenarioTest 37 { 38 39 public static void main(String [] args) 40 { 41 junit.textui.TestRunner.run(MethodInvocationTestCase.class); 42 } 43 44 45 public MethodInvocationTestCase(String name) throws Exception 46 { 47 super(name); 48 } 49 50 public void testMethod() throws Exception 51 { 52 POJO pojo = new POJO(); 53 pojo.method(); super.runner.executeScenario(new ExceptionScenario()); 55 } 56 57 private class ExceptionScenario implements Scenario 58 { 59 POJO pojo = new POJO(); 60 public void execute(int thread, int loop) throws Exception 61 { 62 pojo.method(); 63 } 64 65 } 66 } 67 | Popular Tags |