Search in sources :

Example 1 with FieldsDocumentPart

use of org.apache.poi.hwpf.model.FieldsDocumentPart in project poi by apache.

the class TestFieldsTables method testReadFields.

@Test
public void testReadFields() {
    FileInformationBlock fib = _hWPFDocFixture._fib;
    byte[] tableStream = _hWPFDocFixture._tableStream;
    FieldsTables fieldsTables = new FieldsTables(tableStream, fib);
    int i = 0;
    for (FieldsDocumentPart part : FieldsDocumentPart.values()) {
        String result = dumpPlexes(fieldsTables.getFieldsPLCF(part));
        assertEquals(EXPECTED[i++], result);
    }
}
Also used : FieldsDocumentPart(org.apache.poi.hwpf.model.FieldsDocumentPart) FileInformationBlock(org.apache.poi.hwpf.model.FileInformationBlock) FieldsTables(org.apache.poi.hwpf.model.FieldsTables) Test(org.junit.Test)

Aggregations

FieldsDocumentPart (org.apache.poi.hwpf.model.FieldsDocumentPart)1 FieldsTables (org.apache.poi.hwpf.model.FieldsTables)1 FileInformationBlock (org.apache.poi.hwpf.model.FileInformationBlock)1 Test (org.junit.Test)1