blob: e84caa44f14fece78035a7cd64c9d6ec5776c682 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package org.zwobble.mammoth.tests;
import java.io.File;
import java.net.URISyntaxException;
import lombok.val;
public class TestData {
public static File file(String name) {
try {
val uri = TestData.class.getResource("/test-data/" + name).toURI();
return new File(uri);
} catch (URISyntaxException exception) {
throw new RuntimeException(exception);
}
}
}
|