use of com.xenoage.zong.io.musicxml.in.MusicXmlFileReader in project Zong by Xenoage.
the class Test90a method testOpenFile.
@Test
public void testOpenFile() {
String filepath = Base.dirPath + getFileName();
try {
List<Score> scores = sync(new MusicXmlFileReader(io().openFile(filepath), filepath, l -> CollectionUtils.alist("20a-Compressed-MusicXML.xml")));
assertEquals(1, scores.size());
assertEquals("Compressed MusicXML file", scores.get(0).getInfo().getMovementTitle());
} catch (Exception ex) {
ex.printStackTrace();
fail(ex.getMessage());
}
}
Aggregations