src/test/java/org/jboss/loom/utils/compar/FileHashComparerTest.java
@Test
    public void testReadHashFile() throws Exception {
        System.out.println( "readHashFile" );
        
        File hashes = new File("testdata/utils/crc32hashes.txt");
        Map<String, Long> result = FileHashComparer.readHashes( hashes );
        
        assertEquals( new Long(0xf735fe81L), result.get(STR_ORACLE_DS) );
        assertEquals( new Long(0x10000000L), result.get(STR_DATASOURCES) );
        assertEquals( new Long(0x20000000L), result.get(STR_NON_EXISTENT) );
    }
/**
     * Test of readHashFile method, of class FileHashComparer.
     */
Test of readHashFile method, of class FileHashComparer.
Test of readHashFile method of class FileHashComparer .
@Test
    public void testReadHashFile() throws Exception {
        System.out.println( "readHashFile" );
        File hashes = new File("testdata/utils/crc32hashes.txt");
        Map<String, Long> result = FileHashComparer.readHashes( hashes );
        assertEquals( new Long(0xf735fe81L), result.get(STR_ORACLE_DS) );
        assertEquals( new Long(0x10000000L), result.get(STR_DATASOURCES) );
        assertEquals( new Long(0x20000000L), result.get(STR_NON_EXISTENT) );
    }
@ Test public void testReadHashFile ( ) throws Exception { System . out . println ( "readHashFile" ) ; File hashes = new File ( "testdata/utils/crc32hashes.txt" ) ; Map < String , Long > result = FileHashComparer . readHashes ( hashes ) ; assertEquals ( new Long ( 0xf735fe81L ) , result . get ( STR_ORACLE_DS ) ) ; assertEquals ( new Long ( 0x10000000L ) , result . get ( STR_DATASOURCES ) ) ; assertEquals ( new Long ( 0x20000000L ) , result . get ( STR_NON_EXISTENT ) ) ; }
Test of readHashFile method, of class FileHashComparer.
Test of readHashFile method of class FileHashComparer .