/* (c) 2014 Open Source Geospatial Foundation - all rights reserved
* (c) 2001 - 2013 OpenPlans
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.data.test;
import java.io.File;
import java.io.IOException;
import org.geoserver.util.IOUtils;
public class LiveSystemTestData extends SystemTestData {
protected File source;
public LiveSystemTestData(File source) throws IOException {
super();
this.source = source;
}
@Override
public void setUp() throws Exception {
data = IOUtils.createRandomDirectory("./target", "live", "data");
IOUtils.deepCopy(source, data);
}
public void tearDown() throws Exception {
if(data != null) {
IOUtils.delete(data);
}
}
}