@Override
 protected GeoServerImpl createGeoServer() {
   GeoServerImpl gs = new GeoServerImpl();
   gs.setFacade(facade);
   CatalogImpl catalog = testSupport.getCatalog();
   catalog.setFacade(new JDBCCatalogFacade(testSupport.getDatabase()));
   gs.setCatalog(catalog);
   return gs;
 }
示例#2
0
  protected void createConfig() {
    GeoServerImpl geoServer = new GeoServerImpl();
    geoServer.addListener(
        new GeoServerPersister(new GeoServerResourceLoader(data), createXStreamPersister()));

    GeoServerInfo global = geoServer.getFactory().createGlobal();
    geoServer.setGlobal(global);
    addSettings(null, geoServer);

    LoggingInfo logging = geoServer.getFactory().createLogging();
    geoServer.setLogging(logging);
  }