Package org.strecks.injection.handler.impl

Examples of org.strecks.injection.handler.impl.ActionWithWebHelper


    HttpServletRequest request = createStrictMock(HttpServletRequest.class);
    ServletContext context = createStrictMock(ServletContext.class);

    InjectionAnnotationReader c = new InjectionAnnotationReader();
    ActionWithWebHelper action = new ActionWithWebHelper();

    c.readAnnotations(action.getClass());
    Map<String, InjectionWrapper> inputs = c.getInjectionMap();
    InjectionWrapper inputWrapper = inputs.get("webHelper");

    ActionContext injectionContext = new TestContextImpl(request, null, context, null, null);

    inputWrapper.inject(action, injectionContext);

    assert action.getWebHelper() != null;

  }
View Full Code Here

TOP

Related Classes of org.strecks.injection.handler.impl.ActionWithWebHelper

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.