@Before public void cleanupCatalog() { // attempt to solve intermittend build failure getGeoServer().reset(); }
@RequestMapping( value = "/reset", method = {RequestMethod.POST, RequestMethod.PUT} ) public void reset() { geoServer.reset(); } }
/** * Method to reload the catalog */ protected void reloadCatalog() throws Exception { if(forceReset) { geoServer.reset(); } else { geoServer.reload(); } } }
@Override public void onClick(AjaxRequestTarget target) { try { getGeoServer().reset(); info(getLocalizer().getString("resourceCacheClearedSuccessfully", this)); } catch(Throwable t) { LOGGER.log(Level.SEVERE, "Error resetting resource caches", t); error(t); } target.addComponent(feedbackPanel); } });
@Override public void onClick(AjaxRequestTarget target) { try { parent.getGeoServer().reset(); info( getLocalizer() .getString("resourceCacheClearedSuccessfully", this)); } catch (Throwable t) { LOGGER.log(Level.SEVERE, "Error resetting resource caches", t); error(t); } parent.addFeedbackPanels(target); } });
@Test public void testOTFFontRegistration() throws IOException { // loading fonts causes Java to open a Channel on the file, but there is no way to // release it from client code, thus the test will fail to delete filse on Windows Assume.assumeFalse(SystemUtils.IS_OS_WINDOWS); // in case this font is already on the machine we cannot run a meaningful test FontCache fontCache = FontCache.getDefaultInstance(); String fontName = "League Mono Regular"; Assume.assumeThat(fontCache.getFont(fontName), CoreMatchers.nullValue()); // copy over the font Resource styles = getDataDirectory().get("styles"); String fontFileName = "LeagueMono-Regular.otf"; try (InputStream is = WMSLifecycleHandlerTest.class.getResourceAsStream(fontFileName)) { assertNotNull(is); Resources.copy(is, styles, fontFileName); } // force a reset getGeoServer().reset(); // now the font should be in font cache Font theFont = fontCache.getFont(fontName); assertThat(fontCache.getAvailableFonts().toString(), theFont, CoreMatchers.notNullValue()); } }
getGeoServer().reset();
gml.setOverrideGMLAttributes(false); getGeoServer().save(wfs); getGeoServer().reset();
getGeoServer().reset();