Package org.apache.stanbol.commons.testing.http

Examples of org.apache.stanbol.commons.testing.http.ServletContextMock


    private ServletContextMock servletContext;
    private UriInfoMock uriInfoMock;

    @Before
    public void initMocks() {
        this.servletContext = new ServletContextMock();
        this.servletContext.putAttribute(BaseStanbolResource.ROOT_URL, "http://localhost:8080");
        BundleContextMock bc = (BundleContextMock) this.servletContext.getAttribute(BundleContext.class
                .getName());
        bc.putService(FactStore.class.getName(), new FactStoreMock());
        this.uriInfoMock = new UriInfoMock();
View Full Code Here


   
    private ServletContextMock servletContext;

    @Before
    public void initMocks() {
        this.servletContext = new ServletContextMock();
        BundleContextMock bc = (BundleContextMock) this.servletContext.getAttribute(BundleContext.class
                .getName());
        bc.putService(FactStore.class.getName(), new FactStoreMock());
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.commons.testing.http.ServletContextMock

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.