Changeset 13988


Ignore:
Timestamp:
Nov 7, 2019 3:35:16 PM (10 days ago)
Author:
mjohnsson
Message:

#5870 review fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-mj-2630/Compiler/ModelicaFrontEnd/test/junit/org/jmodelica/test/common/GUIDManagerTest.java

    r13981 r13988  
    126126        TestLogger log = new TestLogger(Level.VERBOSE);
    127127        guidManager.filesMd5.add("DummyHash");
    128         guidManager.writeFileMD5(log);
     128        guidManager.printFileChecksums(log);
    129129        assertNull(log.next());
    130130       
    131131        log = new TestLogger(Level.DEBUG);
    132132        guidManager.filesMd5.add("DummyHash");
    133         guidManager.writeFileMD5(log);
     133        guidManager.printFileChecksums(log);
    134134        assertEquals("DEBUG: DummyHash", log.next());
    135135    }
     
    140140        String dummyFile = "This is a dummy c-file /n c-stuff";
    141141        StringReader reader = new StringReader(dummyFile);
    142         guidManager.createFileMD5(reader, "dummyfile.c", log);
    143         guidManager.writeFileMD5(log);
     142        guidManager.computeFileChecksum(reader, "dummyfile.c", log);
     143        guidManager.printFileChecksums(log);
    144144        assertNull(log.next());
    145145       
    146146        reader = new StringReader(dummyFile);
    147147        log = new TestLogger(Level.DEBUG);
    148         guidManager.createFileMD5(reader, "dummyfile.c", log);
    149         guidManager.writeFileMD5(log);
     148        guidManager.computeFileChecksum(reader, "dummyfile.c", log);
     149        guidManager.printFileChecksums(log);
    150150        assertEquals("DEBUG: Generated file dummyfile.c with checksum fcde3f483c06e4a10bc5b28ec56214f8", log.next());
    151151    }
Note: See TracChangeset for help on using the changeset viewer.