Fix the inconsistent indents in the test file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1575600 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
09adb72510
commit
434f05058e
@ -28,7 +28,6 @@ import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR;
|
|||||||
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText;
|
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText;
|
||||||
|
|
||||||
public final class TestXWPFHeader extends TestCase {
|
public final class TestXWPFHeader extends TestCase {
|
||||||
|
|
||||||
public void testSimpleHeader() throws IOException {
|
public void testSimpleHeader() throws IOException {
|
||||||
XWPFDocument sampleDoc = XWPFTestDataSamples.openSampleDocument("headerFooter.docx");
|
XWPFDocument sampleDoc = XWPFTestDataSamples.openSampleDocument("headerFooter.docx");
|
||||||
|
|
||||||
@ -163,7 +162,8 @@ public final class TestXWPFHeader extends TestCase {
|
|||||||
|
|
||||||
public void testSetWatermark() throws IOException {
|
public void testSetWatermark() throws IOException {
|
||||||
XWPFDocument sampleDoc = XWPFTestDataSamples.openSampleDocument("SampleDoc.docx");
|
XWPFDocument sampleDoc = XWPFTestDataSamples.openSampleDocument("SampleDoc.docx");
|
||||||
// no header is set (yet)
|
|
||||||
|
// No header is set (yet)
|
||||||
XWPFHeaderFooterPolicy policy = sampleDoc.getHeaderFooterPolicy();
|
XWPFHeaderFooterPolicy policy = sampleDoc.getHeaderFooterPolicy();
|
||||||
assertNull(policy.getDefaultHeader());
|
assertNull(policy.getDefaultHeader());
|
||||||
assertNull(policy.getFirstPageHeader());
|
assertNull(policy.getFirstPageHeader());
|
||||||
@ -174,21 +174,29 @@ public final class TestXWPFHeader extends TestCase {
|
|||||||
assertNotNull(policy.getDefaultHeader());
|
assertNotNull(policy.getDefaultHeader());
|
||||||
assertNotNull(policy.getFirstPageHeader());
|
assertNotNull(policy.getFirstPageHeader());
|
||||||
assertNotNull(policy.getEvenPageHeader());
|
assertNotNull(policy.getEvenPageHeader());
|
||||||
|
|
||||||
|
// Re-open, and check
|
||||||
|
XWPFDocument reopened = XWPFTestDataSamples.writeOutAndReadBack(sampleDoc);
|
||||||
|
policy = reopened.getHeaderFooterPolicy();
|
||||||
|
|
||||||
|
assertNotNull(policy.getDefaultHeader());
|
||||||
|
assertNotNull(policy.getFirstPageHeader());
|
||||||
|
assertNotNull(policy.getEvenPageHeader());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testAddPictureData() {
|
public void testAddPictureData() {
|
||||||
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testGetAllPictures() {
|
public void testGetAllPictures() {
|
||||||
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testGetAllPackagePictures() {
|
public void testGetAllPackagePictures() {
|
||||||
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testGetPictureDataById() {
|
public void testGetPictureDataById() {
|
||||||
|
// TODO
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user