X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Ftest%2FTest.java;h=5ec24a43b1b6a0eee8ba68991c9b2fe9d86c2c7b;hp=fb41adebda0793fcf76e29de2e85722fffd578c8;hb=HEAD;hpb=b0c0a80ed00acca017b581fee6337a39b6499c32 diff --git a/src/be/nikiroo/fanfix/test/Test.java b/src/be/nikiroo/fanfix/test/Test.java index fb41ade..5ec24a4 100644 --- a/src/be/nikiroo/fanfix/test/Test.java +++ b/src/be/nikiroo/fanfix/test/Test.java @@ -18,7 +18,7 @@ import be.nikiroo.utils.test.TestLauncher; */ public class Test extends TestLauncher { // - // 3 files can control the test: + // 4 files can control the test: // - test/VERBOSE: enable verbose mode // - test/OFFLINE: to forbid any downloading // - test/URLS: to allow testing URLs @@ -51,7 +51,7 @@ public class Test extends TestLauncher { */ public Test(String[] args, boolean urlsAllowed) throws IOException { super("Fanfix", args); - Instance.setTraceHandler(null); + Instance.getInstance().setTraceHandler(null); addSeries(new BasicSupportUtilitiesTest(args)); addSeries(new BasicSupportDeprecatedTest(args)); addSeries(new LibraryTest(args)); @@ -106,7 +106,7 @@ public class Test extends TestLauncher { // Only download files if allowed: boolean offline = new File("test/OFFLINE").exists(); - Instance.getCache().setOffline(offline); + Instance.getInstance().getCache().setOffline(offline); @@ -126,7 +126,7 @@ public class Test extends TestLauncher { System.setProperty("CONFIG_DIR", tmpConfig.getAbsolutePath()); Instance.init(true); - Instance.getCache().setOffline(offline); + Instance.getInstance().getCache().setOffline(offline); TestLauncher tests = new Test(args, urlsAllowed); tests.setDetails(verbose); @@ -140,7 +140,7 @@ public class Test extends TestLauncher { tempFiles.close(); // This is usually done in Fanfix.Main: - Instance.getTempFiles().close(); + Instance.getInstance().getTempFiles().close(); } System.exit(result);