X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Ftest%2FTest.java;h=dd412ec4ba6ae75cdd0bae436e166bcde3100b4a;hb=f7460e4c44772dfb5fc5a421e33b4fba7eae94d3;hp=3ff9a7ab8d139ad3e42c46f9caed8d504021f5e7;hpb=2a25f7814eec9854022f1c9dee188bfbdb955591;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/test/Test.java b/src/be/nikiroo/fanfix/test/Test.java index 3ff9a7a..dd412ec 100644 --- a/src/be/nikiroo/fanfix/test/Test.java +++ b/src/be/nikiroo/fanfix/test/Test.java @@ -29,6 +29,7 @@ public class Test extends TestLauncher { Instance.setTraceHandler(null); addSeries(new BasicSupportTest(args)); addSeries(new LibraryTest(args)); + addSeries(new ConversionTest(args)); } /** @@ -47,12 +48,17 @@ public class Test extends TestLauncher { tmpCache.delete(); tmpCache.mkdir(); - FileOutputStream out = new FileOutputStream(new File(tmpConfig, - "config.properties")); - Properties props = new Properties(); - props.setProperty("CACHE_DIR", tmpCache.getAbsolutePath()); - props.store(out, null); - out.close(); + FileOutputStream out = null; + try { + out = new FileOutputStream(new File(tmpConfig, "config.properties")); + Properties props = new Properties(); + props.setProperty("CACHE_DIR", tmpCache.getAbsolutePath()); + props.store(out, null); + } finally { + if (out != null) { + out.close(); + } + } ConfigBundle config = new ConfigBundle(); Bundles.setDirectory(tmpConfig.getAbsolutePath());