Move testcases from brouter-server to their modules
This commit is contained in:
parent
93e8a81005
commit
3787076839
3 changed files with 3 additions and 6 deletions
|
|
@ -0,0 +1,29 @@
|
|||
package btools.mapaccess;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.URL;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import btools.mapaccess.PhysicalFile;
|
||||
|
||||
public class IntegrityCheckTest {
|
||||
private File workingDir;
|
||||
|
||||
@Test
|
||||
public void integrityTest() throws Exception {
|
||||
URL resulturl = this.getClass().getResource("/testtrack0.gpx");
|
||||
Assert.assertTrue("reference result not found: ", resulturl != null);
|
||||
File resultfile = new File(resulturl.getFile());
|
||||
workingDir = resultfile.getParentFile();
|
||||
|
||||
File segmentDir = new File(workingDir, "/../../../../brouter-map-creator/build/resources/test/tmp/segments");
|
||||
File[] files = segmentDir.listFiles();
|
||||
|
||||
for (File f : files) {
|
||||
PhysicalFile.checkFileIntegrity(f);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue