@Before public void setUp() throws Exception { Assume.assumeTrue(GdalTestUtil.isGdalAvailable()); gdal = new GdalWrapper(GdalTestUtil.getGdalTranslate(), GdalTestUtil.getGdalData()); }
@Before public void setup() { assumeTrue(GdalTestUtil.isGdalAvailable()); GdalConfigurator.DEFAULT.setExecutable(GdalTestUtil.getGdalTranslate()); GdalConfigurator.DEFAULT.setEnvironment(GdalTestUtil.getGdalData()); // force reload of the config, some tests may alter it GdalConfigurator configurator = applicationContext.getBean(GdalConfigurator.class); configurator.loadConfiguration(); }
@Before public void setUp() throws Exception { Assume.assumeTrue(GdalTestUtil.isGdalAvailable()); GdalConfigurator.DEFAULT.setExecutable(GdalTestUtil.getGdalTranslate()); GdalConfigurator.DEFAULT.setEnvironment(GdalTestUtil.getGdalData()); // force reload of the config, some tests may alter it GdalConfigurator configurator = applicationContext.getBean(GdalConfigurator.class); configurator.loadConfiguration(); }
@Before public void setUp() throws Exception { // check if we can run the tests Assume.assumeTrue(GdalTestUtil.isGdalAvailable()); // the coverage response delegate gdalCovRespDelegate = new GdalCoverageResponseDelegate(new GeoServerImpl(), new GdalWrapperFactory()); // add default formats for (Format format : GdalConfigurator.DEFAULT.getFormats()) { gdalCovRespDelegate.addFormat(format); } gdalCovRespDelegate.setExecutable(GdalTestUtil.getGdalTranslate()); gdalCovRespDelegate.setEnvironment(GdalTestUtil.getGdalData()); }