Package org.geoserver.catalog.impl

Examples of org.geoserver.catalog.impl.CatalogImpl


    public void testMissingFeatureTypes() throws Exception {
        MockData mockData = (MockData)getTestData();
       
        mockData.getFeatureTypesDirectory().delete();
        LegacyCatalogImporter importer = new LegacyCatalogImporter(new CatalogImpl());
        importer.imprt(mockData.getDataDirectoryRoot());
    }
View Full Code Here


   
    public void testMissingCoverages() throws Exception {
        MockData mockData = (MockData)getTestData();
       
        mockData.getCoveragesDirectory().delete();
        LegacyCatalogImporter importer = new LegacyCatalogImporter(new CatalogImpl());
        importer.imprt(mockData.getDataDirectoryRoot());
    }
View Full Code Here

     */
    public void testCRSPrefix() throws Exception {
        MockData mockData = (MockData)getTestData();
       
        mockData.getCoveragesDirectory().delete();
        Catalog catalog = new CatalogImpl();
        LegacyCatalogImporter importer = new LegacyCatalogImporter(catalog);
       
        File dataDirectoryRoot = mockData.getDataDirectoryRoot();
        importer.imprt(dataDirectoryRoot);
       
        FeatureTypeInfo typeInfo = catalog.getFeatureTypeByName(typeName.getNamespaceURI(), typeName.getLocalPart());
        assertEquals("EPSG:4326", typeInfo.getSRS());
    }
View Full Code Here

        } catch (IOException e) {
            throw new RuntimeException(e);
        }
       
        //initialize the mock by actually building a real one first
        CatalogBuilder cb = new CatalogBuilder(new CatalogImpl());
        cb.setStore(cs);
   
        GridCoverage2DReader reader = cs.getFormat().getReader(cs.getURL());
        if (reader == null) {
            throw new RuntimeException("No reader for " + cs.getURL());
View Full Code Here

     *
     */
    private static class NewDataPageWithFakeCatalog extends NewDataPage{
        @Override
        protected Catalog getCatalog(){
            return new CatalogImpl();
        }
View Full Code Here

    @SuppressWarnings("deprecation")
    public void setUp() throws Exception {
        mockMapProducer = new DummyRasterMapProducer();

        catalog = new CatalogImpl();

        namespaceInfo = new NamespaceInfoImpl();
        namespaceInfo.setId("testNs");
        namespaceInfo.setPrefix(TEST_NS_PREFIX);
        namespaceInfo.setURI(TEST_NAMESPACE);
View Full Code Here

TOP

Related Classes of org.geoserver.catalog.impl.CatalogImpl

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.