@@ -0,0 +1,807 @@
+%0Apackage io.scif.config;%0A%0Aimport static org.junit.Assert.fail;%0A%0Aimport io.scif.codec.CompressionType;%0A%0Aimport org.junit.Test;%0A%0Apublic class SCIFIOConfigTest %7B%0A%0A%09@Test%0A%09public void testWriterGetCompression() %7B%0A%09%09SCIFIOConfig scifioConfig = new SCIFIOConfig();%0A%09%09// use a invalid string%0A%09%09if (scifioConfig.writerSetCompression(%22Invalid%22) != null) %7B%0A%09%09%09fail(%0A%09%09%09%09%22Null expected when using invlalid compressiong value, but not returned%22);%0A%09%09%7D%0A%09%09%0A%09%09for (CompressionType ct : CompressionType.values()) %7B%0A%09%09%09if (scifioConfig.writerSetCompression(ct.getCompression()) == null) %7B%0A%09%09%09%09fail(%22An instance of CompressionType is expected, but returned null.%22);%0A%09%09%09%7D%0A%09%09%09if (!scifioConfig.writerGetCompression().equals(ct.getCompression())) %7B%0A%09%09%09%09fail(%22Method did not set scifioConfig's non-static field.%22);%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Test functionality of writerSetCompression in SCIFIOConfig