Package org.springframework.batch.support

Examples of org.springframework.batch.support.SimpleMethodInvoker


  @Test
  public void testNormalCase() throws Throwable{

    Map<String, Set<MethodInvoker>> invokerMap = new HashMap<String, Set<MethodInvoker>>();
    for(Method method : TestClass.class.getMethods()){
      invokerMap.put(method.getName(), asSet( new SimpleMethodInvoker(testClass, method)));
    }
    interceptor = new MethodInvokerMethodInterceptor(invokerMap);
    interceptor.invoke(new StubMethodInvocation(TestClass.class.getMethod("method1")));
    assertEquals(1, testClass.method1Count);
    interceptor.invoke(new StubMethodInvocation(TestClass.class.getMethod("method2")));
View Full Code Here

TOP

Related Classes of org.springframework.batch.support.SimpleMethodInvoker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.