Package org.geoserver.catalog.impl

Examples of org.geoserver.catalog.impl.CatalogFactoryImpl


        List<WorkspaceBuilder> workspaces = new ArrayList<WorkspaceBuilder>();

        public CatalogBuilder(MockGeoServer geoServer) {
            this.geoServer = geoServer;
            this.catalog = mock(Catalog.class);
            when(catalog.getFactory()).thenReturn(new CatalogFactoryImpl(catalog));
        }
View Full Code Here


    @Test
    public void testCreateInWorkspace() throws Exception {
        ResourcePool rp = createNiceMock(ResourcePool.class);

        Catalog cat = createNiceMock(Catalog.class);
        expect(cat.getFactory()).andReturn(new CatalogFactoryImpl(null)).anyTimes();
        expect(cat.getResourcePool()).andReturn(rp).anyTimes();

        WorkspaceInfo ws = createNiceMock(WorkspaceInfo.class);

        FeatureTypeInfo ft = createNiceMock(FeatureTypeInfo.class);
View Full Code Here

   
    public Catalog createCatalog(MockTestData testData) throws Exception {
        GeoServerResourceLoader loader = createResourceLoader(testData);
       
        final Catalog catalog = createMock(Catalog.class);
        expect(catalog.getFactory()).andReturn(new CatalogFactoryImpl(catalog)).anyTimes();
        expect(catalog.getResourceLoader()).andReturn(loader).anyTimes();

        catalog.removeListeners((Class)EasyMock.anyObject());
        expectLastCall().anyTimes();
View Full Code Here

TOP

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

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.