@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;
 }
Esempio n. 2
0
 public void setUp() throws Exception {
   dialect = new Dialect();
   dbMappings = new DbMappings(dialect);
   testSupport =
       new JDBCConfigTestSupport(
           (JDBCConfigTestSupport.DBConfig)
               JDBCConfigTestSupport.parameterizedDBConfigs().get(0)[0]);
   testSupport.setUp();
   dbMappings = testSupport.getDbMappings();
 }
  @Override
  public void setUp() throws Exception {
    testSupport = new JDBCConfigTestSupport();
    testSupport.setUp();

    ConfigDatabase configDb = testSupport.getDatabase();
    facade = new JDBCGeoServerFacade(configDb);

    super.setUp();
  }
Esempio n. 4
0
 public void tearDown() throws Exception {
   testSupport.tearDown();
 }
 @After
 public void tearDown() throws Exception {
   facade.dispose();
   testSupport.tearDown();
 }