diff options
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/util/TestUtil.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/util/TestUtil.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/util/TestUtil.java b/test/uk/ac/ox/cs/pagoda/util/TestUtil.java index c3909d5..fdd242a 100644 --- a/test/uk/ac/ox/cs/pagoda/util/TestUtil.java +++ b/test/uk/ac/ox/cs/pagoda/util/TestUtil.java | |||
| @@ -22,7 +22,7 @@ import static java.nio.file.StandardCopyOption.REPLACE_EXISTING; | |||
| 22 | public class TestUtil { | 22 | public class TestUtil { |
| 23 | 23 | ||
| 24 | public static final String CONFIG_FILE = "test.properties"; | 24 | public static final String CONFIG_FILE = "test.properties"; |
| 25 | 25 | private static final Logger LOGGER = Logger.getLogger("Tester"); | |
| 26 | private static boolean isConfigLoaded = false; | 26 | private static boolean isConfigLoaded = false; |
| 27 | private static Properties config; | 27 | private static Properties config; |
| 28 | 28 | ||
| @@ -71,4 +71,20 @@ public class TestUtil { | |||
| 71 | return Paths.get(givenAnswersURL.getPath()); | 71 | return Paths.get(givenAnswersURL.getPath()); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | public static void logInfo(Object msg) { | ||
| 75 | LOGGER.info(msg); | ||
| 76 | } | ||
| 77 | |||
| 78 | public static void logDebug(Object msg) { | ||
| 79 | LOGGER.debug(msg); | ||
| 80 | } | ||
| 81 | |||
| 82 | public static void logError(Object msg) { | ||
| 83 | LOGGER.error(msg); | ||
| 84 | } | ||
| 85 | |||
| 86 | public static void logError(Object msg, Throwable t) { | ||
| 87 | LOGGER.error(msg, t); | ||
| 88 | } | ||
| 89 | |||
| 74 | } | 90 | } |
