src/test/java/eu/digitisation/input/FileTypeTest.java
@Test
    public void testValueOf()
            throws SchemaLocationException, IOException {
        System.out.println("valueOf");
        URL url = getClass().getResource("/OfTheSciences_ocr_PAGE.xml");
        File file = new File(url.getPath());
        FileType expResult = FileType.PAGE;
        FileType result = FileType.valueOf(file);
        assertEquals(expResult, result);
    }
/**
     * Test of valueOf method, of class FileType.
     *
     * @throws eu.digitisation.input.SchemaLocationException
     */
Test of valueOf method, of class FileType.
Test of valueOf method of class FileType .
@Test
    public void testValueOf()
            throws SchemaLocationException, IOException {
        System.out.println("valueOf");
        URL url = getClass().getResource("/OfTheSciences_ocr_PAGE.xml");
        File file = new File(url.getPath());
        FileType expResult = FileType.PAGE;
        FileType result = FileType.valueOf(file);
        assertEquals(expResult, result);
    }
@ Test public void testValueOf ( ) throws SchemaLocationException , IOException { System . out . println ( "valueOf" ) ; URL url = getClass ( ) . getResource ( "/OfTheSciences_ocr_PAGE.xml" ) ; File file = new File ( url . getPath ( ) ) ; FileType expResult = FileType . PAGE ; FileType result = FileType . valueOf ( file ) ; assertEquals ( expResult , result ) ; }
Test of valueOf method, of class FileType.
Test of valueOf method of class FileType .