Allow for emulated Preferences in testing.

This commit is contained in:
A Pottinger
2020-06-29 14:42:39 -07:00
parent 65d4ea90d3
commit 2e3f573ef8
2 changed files with 11 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ public class ProcessingTestUtil {
static void init() {
// noop; just causes class to be loaded
}
private static final String RESOURCES = "test/resources/";
private static final String RESOURCES_UP_DIR = "../java/test/resources";
static final UTCompiler COMPILER;
@@ -64,9 +64,10 @@ public class ProcessingTestUtil {
return normalize(out);
}
static String format(final File resource)
{
Preferences.skipInit();
return format(read(resource));
}