Package org.apache.tapestry.error

Examples of org.apache.tapestry.error.RequestExceptionReporter


        WebResponse response = newMock(WebResponse.class);
        WebContext context = newMock(WebContext.class);
        IRequestCycle cycle = newMock(IRequestCycle.class);
        ResourceMatcher matcher = newMock(ResourceMatcher.class);
        ResourceDigestSource digestSource = newMock(ResourceDigestSource.class);
        RequestExceptionReporter exceptionReporter = newMock(RequestExceptionReporter.class);

        // digester throws exception for invalid resources
        expect(digestSource.getDigestForResource(requestedResource))
            .andThrow(new ApplicationRuntimeException("error"))
            .anyTimes();
        // in which case the exception reporter has to show them
        exceptionReporter.reportRequestException((String)EasyMock.anyObject(), (Throwable)EasyMock.anyObject());
        EasyMock.expectLastCall().anyTimes();

        ClassResolver resolver = new DefaultClassResolver();

        AssetService service = new AssetService();
View Full Code Here

TOP

Related Classes of org.apache.tapestry.error.RequestExceptionReporter

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.