Created
August 14, 2012 12:43
-
-
Save gourlaysama/3349016 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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