Package org.geoserver.platform

Examples of org.geoserver.platform.GeoServerExtensions


       
        ApplicationContext context = createNiceMock(ApplicationContext.class);
        expect(context.getBean("catalog")).andReturn(cat).anyTimes();
        replay(context);
       
        new GeoServerExtensions().setApplicationContext(context);
    }
View Full Code Here


        new GeoServerExtensions().setApplicationContext(context);
    }
   
    @After
    public void tearDown() throws Exception {
        new GeoServerExtensions().setApplicationContext(null);
        DeleteDbFiles.execute("target", "bar", false);
    }
View Full Code Here

        expect(appContext.getBeanNamesForType(DataStoreFactoryInitializer.class))
            .andReturn(new String[]{"geopkgDataStoreFactoryInitializer"}).anyTimes();
        expect(appContext.getBean("geopkgDataStoreFactoryInitializer")).andReturn(initializer).anyTimes();
        replay(appContext);

        new GeoServerExtensions().setApplicationContext(appContext);
        assertNotNull(DataStoreUtils.aquireFactory(new GeoPkgDataStoreFactory().getDisplayName()));

        verify(resourceLoader);
    }
View Full Code Here

    @BeforeClass
    public static void initAppContext() {
        // setup extensions so that we can do extension point lookups
        ApplicationContext ac = new ClassPathXmlApplicationContext(
                new String[] { "classpath:/securedObjectsContext.xml"});
        new GeoServerExtensions().setApplicationContext(ac);
    }
View Full Code Here

    /**
     * @see junit.framework.TestCase#tearDown()
     */
    @After
    public void tearDown() throws Exception {
        new GeoServerExtensions().setApplicationContext(null);
    }
View Full Code Here

    /**
     * @see junit.framework.TestCase#tearDown()
     */
    @After
    public void tearDown() throws Exception {
        new GeoServerExtensions().setApplicationContext(null);
    }
View Full Code Here

    @Override
    protected void setUpTestData(SystemTestData testData) throws Exception {
        super.setUpTestData(testData);
        testData.setUpDefaultRasterLayers();
       
        GeoServerExtensions extension = GeoServerExtensions.bean(GeoServerExtensions.class);
        if( extension == null ){
            GeoServerExtensionsHelper.init( this.applicationContext );
        }
    }
View Full Code Here

    /**
     * @see junit.framework.TestCase#tearDown()
     */
    @Override
    protected void tearDown() throws Exception {
        new GeoServerExtensions().setApplicationContext(null);
    }
View Full Code Here

TOP

Related Classes of org.geoserver.platform.GeoServerExtensions

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.