Package org.springframework.mock.easymock

Examples of org.springframework.mock.easymock.AbstractScalarMockTemplate


  }

  public void testGetRealPathInterpretsLocationAsRelativeToWebAppRootIfPathDoesNotBeginWithALeadingSlash() throws Exception {
    final String originalPath = "web/foo";
    final String expectedRealPath = "/" + originalPath;
    new AbstractScalarMockTemplate(PortletContext.class) {
      public void setupExpectations(MockControl mockControl, Object mockObject) throws Exception {
        PortletContext ctx = (PortletContext) mockObject;
        ctx.getRealPath(expectedRealPath);
        mockControl.setReturnValue(expectedRealPath);
      }
View Full Code Here

TOP

Related Classes of org.springframework.mock.easymock.AbstractScalarMockTemplate

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.