/*
 * Copyright (c) 2006 Your Corporation. All Rights Reserved.
 */
package net.sf.ij_plugins.io.vtk;

import ij.ImagePlus;
import net.sf.ij_plugins.AbstractImageTest;

import java.io.File;

/**
 * Date: Nov 12, 2006
 * Time: 11:05:51 PM
 *
 * @author Jarek Sacha
 */
public final class VtkDecoderTest extends AbstractImageTest {
    public VtkDecoderTest(String test) {
        super(test);
    }

    public void testBUG1594780() throws Exception {
        final File extepectedImageFile = new File("test/data/BUG-1594780/test_COLOR_SCALARS_1.png");
        final File actualImageFile = new File("test/data/BUG-1594780/test_COLOR_SCALARS_1.vtk");

        assertTrue(extepectedImageFile.exists());
        final ImagePlus expectedImp = openImage(extepectedImageFile.getAbsolutePath());

        assertTrue(actualImageFile.exists());
        final ImagePlus actualImp = VtkDecoder.open(actualImageFile);

        assertEquals(expectedImp, actualImp, 0);
    }
}
@@ -1,11 +1,30 @@
 /*%0A
+ * Image/J Plugins%0A
  * Copyr
@@ -33,254 +33,1079 @@
 ht (
-c
+C
 ) 200
-6 Your Corporation. All Rights Reserved.%0A */%0Apackage net.sf.ij_plugins.io.vtk;%0A%0Aimport ij.ImagePlus;%0Aimport net.sf.ij_plugins.AbstractImageTest;%0A%0Aimport java.io.File;%0A%0A/**%0A * Date: Nov 12, 2006%0A * Time: 11:05:51 PM%0A *%0A * @author Jarek Sacha
+2-2008 Jarek Sacha%0A *%0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A *%0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA%0A *%0A * Latest release available at http://sourceforge.net/projects/ij-plugins/%0A *%0A */%0Apackage net.sf.ij_plugins.io.vtk;%0A%0Aimport ij.ImagePlus;%0Aimport net.sf.ij_plugins.AbstractImageTest;%0Aimport net.sf.ij_plugins.io.IOUtils;%0A%0Aimport java.io.File;%0A%0A/**%0A * @author Jarek Sacha%0A * @since 11:05:51 PM  Nov 12, 2006
 %0A */
@@ -1575,16 +1575,24 @@
 edImp = 
+IOUtils.
 openImag

Use IOUtils to open image.