}
public boolean destinationHasPointers() {
if(type == 20) return true;
+ if(type == 22) return false;
if(format == 0x1d || format == 0x1e) return true;
return (0x50 <= format && format < 0x60);
}
public boolean destinationHasChunks() {
+ if (type == 21) return true;
+ if (type == 24) return true;
return (0xd0 <= format && format < 0xdf);
}
assertNotNull(hdgf);
}
- /**
- * TODO: V5 support is incomplete
- */
- public void TODOtestV5() throws Exception {
+ public void testV5() throws Exception {
fs = new POIFSFileSystem(_dgTests.openResourceAsStream("v5_Connection_Types.vsd"));
HDGFDiagram hdgf = new HDGFDiagram(fs);
VisioTextExtractor textExtractor = new VisioTextExtractor(hdgf);
String text = textExtractor.getText().replace("\u0000", "").trim();
- assertEquals("Static to Static\n\nDynamic to Dynamic\n\nDynamic to Static", text);
+ assertEquals("Static to Static\nDynamic to Static\nDynamic to Dynamic", text);
}
public void testV6NonUtf16LE() throws Exception {