diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-05-20 18:52:47 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-05-20 18:52:47 +0100 |
| commit | d81b086fe329fa69891eba0a4b1f73e44183620d (patch) | |
| tree | 7c55c80678660cdbd3dae18e94c4baf5b0680e11 /test/uk/ac/ox/cs/pagoda/util/TestUtil.java | |
| parent | 7a68441a541b12b22587fb53072193e1130049ff (diff) | |
| download | ACQuA-d81b086fe329fa69891eba0a4b1f73e44183620d.tar.gz ACQuA-d81b086fe329fa69891eba0a4b1f73e44183620d.zip | |
Added more tests.
Querying of the upper bound is currently unstable.
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/util/TestUtil.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/util/TestUtil.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/util/TestUtil.java b/test/uk/ac/ox/cs/pagoda/util/TestUtil.java index ad0d494..c3909d5 100644 --- a/test/uk/ac/ox/cs/pagoda/util/TestUtil.java +++ b/test/uk/ac/ox/cs/pagoda/util/TestUtil.java | |||
| @@ -7,7 +7,9 @@ import org.apache.log4j.Logger; | |||
| 7 | import java.io.File; | 7 | import java.io.File; |
| 8 | import java.io.IOException; | 8 | import java.io.IOException; |
| 9 | import java.io.InputStream; | 9 | import java.io.InputStream; |
| 10 | import java.net.URL; | ||
| 10 | import java.nio.file.Files; | 11 | import java.nio.file.Files; |
| 12 | import java.nio.file.Path; | ||
| 11 | import java.nio.file.Paths; | 13 | import java.nio.file.Paths; |
| 12 | import java.util.Enumeration; | 14 | import java.util.Enumeration; |
| 13 | import java.util.Properties; | 15 | import java.util.Properties; |
| @@ -62,4 +64,11 @@ public class TestUtil { | |||
| 62 | return null; | 64 | return null; |
| 63 | } | 65 | } |
| 64 | 66 | ||
| 67 | public static Path getAnswersFilePath(String name) { | ||
| 68 | URL givenAnswersURL = TestUtil.class.getClassLoader() | ||
| 69 | .getResource(name); | ||
| 70 | if(givenAnswersURL == null) throw new RuntimeException("Missing answers file:" + name); | ||
| 71 | return Paths.get(givenAnswersURL.getPath()); | ||
| 72 | } | ||
| 73 | |||
| 65 | } | 74 | } |
