src/test/java/eu/digitisation/image/BImageTest.java
@Test
    public void openTiffFile() throws Exception {
        URL resourceUrl = getClass().getResource("/OfTheSciences.tif");
        File ifile = new File(resourceUrl.toURI());
        Bimage page = null;

        if (ifile.exists()) {
            try {
                page = new Bimage(ifile).toRGB();
            } catch (NullPointerException ex) {
                throw new IOException("Unsupported format");
            }
        } else {
            throw new java.io.IOException(ifile + " not found");
        }

        BufferedImage image = new Bimage(ifile);
        assertNotNull(image);
    }
/**
     * Test support TIF Image
     *
     * @throws IOException
     */
Test support TIF Image
@throws IOException
Test support TIF Image @throws IOException
@Test
    public void openTiffFile() throws Exception {
        URL resourceUrl = getClass().getResource("/OfTheSciences.tif");
        File ifile = new File(resourceUrl.toURI());
        Bimage page = null;
        if (ifile.exists()) {
            try {
                page = new Bimage(ifile).toRGB();
            } catch (NullPointerException ex) {
                throw new IOException("Unsupported format");
            }
        } else {
            throw new java.io.IOException(ifile + " not found");
        }
        BufferedImage image = new Bimage(ifile);
        assertNotNull(image);
    }
@ Test public void openTiffFile ( ) throws Exception { URL resourceUrl = getClass ( ) . getResource ( "/OfTheSciences.tif" ) ; File ifile = new File ( resourceUrl . toURI ( ) ) ; Bimage page = null ; if ( ifile . exists ( ) ) { try { page = new Bimage ( ifile ) . toRGB ( ) ; } catch ( NullPointerException ex ) { throw new IOException ( "Unsupported format" ) ; } } else { throw new java . io . IOException ( ifile + " not found" ) ; } BufferedImage image = new Bimage ( ifile ) ; assertNotNull ( image ) ; }
Test support TIF Image
 @throws IOException
Test support TIF Image @throws IOException