@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()); }