Skip to content

Instantly share code, notes, and snippets.

@gourlaysama
Created August 14, 2012 12:43
Show Gist options
  • Save gourlaysama/3349016 to your computer and use it in GitHub Desktop.
Save gourlaysama/3349016 to your computer and use it in GitHub Desktop.
import org.orbisgis.utils.FileUtils;
public class WMSTest {
...
private File f;
@Before
public void setUp() throws Exception {
f = File.createTempFile("wms", null);
f.delete();
CoreWorkspace c = new CoreWorkspace();
c.setWorkspaceFolder(f.getAbsolutePath());
wms.init(c, Collections.<String, Style>emptyMap(), Collections.<String, String[]>emptyMap());
}
@After
public void tearDown() {
wms.destroy();
FileUtils.deleteDir(f);
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment