Package org.geowebcache.util

Examples of org.geowebcache.util.ApplicationContextProvider


        WebApplicationContext appContext = EasyMock.createMock(WebApplicationContext.class);
        EasyMock.expect(appContext.getServletContext()).andReturn(mockServletCtx).anyTimes();
        EasyMock.replay(appContext);

        contextProvider = new ApplicationContextProvider();
        contextProvider.setApplicationContext(appContext);

        tld = EasyMock.createMock(TileLayerDispatcher.class);
        TileLayer toppStates = createMockLayer("topp:states");
        TileLayer raster = createMockLayer("raster test layer");
View Full Code Here


        WebApplicationContext appContext = EasyMock.createMock(WebApplicationContext.class);
        EasyMock.expect(appContext.getServletContext()).andReturn(mockServletCtx).anyTimes();
        EasyMock.replay(appContext);

        contextProvider = new ApplicationContextProvider();
        contextProvider.setApplicationContext(appContext);

        tld = EasyMock.createMock(TileLayerDispatcher.class);
        TileLayer toppStates = createMockLayer("topp:states");
        TileLayer raster = createMockLayer("raster test layer");
View Full Code Here


    public void testMigration(boolean migrateCreationDates) throws Exception {
        System.setProperty("MIGRATE_CREATION_DATES", String.valueOf(migrateCreationDates));
        // the remover does the migration on instantiation
        MetastoreRemover remover = new MetastoreRemover(new DefaultStorageFinder(new ApplicationContextProvider()) {
            @Override
            public synchronized String getDefaultPath() throws ConfigurationException {
                return root.toString();
            }
        });
View Full Code Here

TOP

Related Classes of org.geowebcache.util.ApplicationContextProvider

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.