aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorMark Murphy <jmarkmurphy@apache.org>2016-11-07 05:35:18 +0000
committerMark Murphy <jmarkmurphy@apache.org>2016-11-07 05:35:18 +0000
commit9c527e133f20370f662f7c8c9e7f6f7915b0ce09 (patch)
tree07bdeca9190829c3ab3e2225ffdf6f18731d25ea /src/examples
parent5335dd775fcebfba6cee380f95bf5d1c6871e78d (diff)
downloadpoi-9c527e133f20370f662f7c8c9e7f6f7915b0ce09.tar.gz
poi-9c527e133f20370f662f7c8c9e7f6f7915b0ce09.zip
Move XWPF examples to new package to clean up code coverage
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1768437 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/src/org/apache/poi/xwpf/usermodel/examples/BetterHeaderFooterExample.java (renamed from src/examples/src/org/apache/poi/xwpf/usermodel/BetterHeaderFooterExample.java)7
-rw-r--r--src/examples/src/org/apache/poi/xwpf/usermodel/examples/HeaderFooterTable.java (renamed from src/examples/src/org/apache/poi/xwpf/usermodel/HeaderFooterTable.java)10
-rw-r--r--src/examples/src/org/apache/poi/xwpf/usermodel/examples/SimpleDocument.java (renamed from src/examples/src/org/apache/poi/xwpf/usermodel/SimpleDocument.java)14
-rw-r--r--src/examples/src/org/apache/poi/xwpf/usermodel/examples/SimpleDocumentWithHeader.java (renamed from src/examples/src/org/apache/poi/xwpf/usermodel/SimpleDocumentWithHeader.java)2
-rw-r--r--src/examples/src/org/apache/poi/xwpf/usermodel/examples/SimpleImages.java (renamed from src/examples/src/org/apache/poi/xwpf/usermodel/SimpleImages.java)6
-rw-r--r--src/examples/src/org/apache/poi/xwpf/usermodel/examples/SimpleTable.java (renamed from src/examples/src/org/apache/poi/xwpf/usermodel/SimpleTable.java)10
-rw-r--r--src/examples/src/org/apache/poi/xwpf/usermodel/examples/UpdateEmbeddedDoc.java (renamed from src/examples/src/org/apache/poi/xwpf/usermodel/UpdateEmbeddedDoc.java)3
7 files changed, 45 insertions, 7 deletions
diff --git a/src/examples/src/org/apache/poi/xwpf/usermodel/BetterHeaderFooterExample.java b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/BetterHeaderFooterExample.java
index 99e7dd1ba5..fe5f5ad44a 100644
--- a/src/examples/src/org/apache/poi/xwpf/usermodel/BetterHeaderFooterExample.java
+++ b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/BetterHeaderFooterExample.java
@@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-package org.apache.poi.xwpf.usermodel;
+package org.apache.poi.xwpf.usermodel.examples;
import java.io.File;
import java.io.FileOutputStream;
@@ -22,6 +22,11 @@ import java.io.IOException;
import java.io.OutputStream;
import org.apache.poi.wp.usermodel.HeaderFooterType;
+import org.apache.poi.xwpf.usermodel.XWPFDocument;
+import org.apache.poi.xwpf.usermodel.XWPFFooter;
+import org.apache.poi.xwpf.usermodel.XWPFHeader;
+import org.apache.poi.xwpf.usermodel.XWPFParagraph;
+import org.apache.poi.xwpf.usermodel.XWPFRun;
public class BetterHeaderFooterExample {
diff --git a/src/examples/src/org/apache/poi/xwpf/usermodel/HeaderFooterTable.java b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/HeaderFooterTable.java
index cd1d21f48e..a2b9103a47 100644
--- a/src/examples/src/org/apache/poi/xwpf/usermodel/HeaderFooterTable.java
+++ b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/HeaderFooterTable.java
@@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-package org.apache.poi.xwpf.usermodel;
+package org.apache.poi.xwpf.usermodel.examples;
import java.io.File;
import java.io.FileOutputStream;
@@ -23,6 +23,14 @@ import java.io.OutputStream;
import java.math.BigInteger;
import org.apache.poi.wp.usermodel.HeaderFooterType;
+import org.apache.poi.xwpf.usermodel.XWPFDocument;
+import org.apache.poi.xwpf.usermodel.XWPFFooter;
+import org.apache.poi.xwpf.usermodel.XWPFHeader;
+import org.apache.poi.xwpf.usermodel.XWPFParagraph;
+import org.apache.poi.xwpf.usermodel.XWPFRun;
+import org.apache.poi.xwpf.usermodel.XWPFTable;
+import org.apache.poi.xwpf.usermodel.XWPFTableCell;
+import org.apache.poi.xwpf.usermodel.XWPFTableRow;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblGrid;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblGridCol;
diff --git a/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleDocument.java b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/SimpleDocument.java
index b7e4da2d4e..1553321cd4 100644
--- a/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleDocument.java
+++ b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/SimpleDocument.java
@@ -14,10 +14,22 @@
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-package org.apache.poi.xwpf.usermodel;
+package org.apache.poi.xwpf.usermodel.examples;
import java.io.FileOutputStream;
+import org.apache.poi.xwpf.usermodel.Borders;
+import org.apache.poi.xwpf.usermodel.BreakClear;
+import org.apache.poi.xwpf.usermodel.BreakType;
+import org.apache.poi.xwpf.usermodel.LineSpacingRule;
+import org.apache.poi.xwpf.usermodel.ParagraphAlignment;
+import org.apache.poi.xwpf.usermodel.TextAlignment;
+import org.apache.poi.xwpf.usermodel.UnderlinePatterns;
+import org.apache.poi.xwpf.usermodel.VerticalAlign;
+import org.apache.poi.xwpf.usermodel.XWPFDocument;
+import org.apache.poi.xwpf.usermodel.XWPFParagraph;
+import org.apache.poi.xwpf.usermodel.XWPFRun;
+
/**
* A simple WOrdprocessingML document created by POI XWPF API
*
diff --git a/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleDocumentWithHeader.java b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/SimpleDocumentWithHeader.java
index 68660733e6..a798ebd431 100644
--- a/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleDocumentWithHeader.java
+++ b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/SimpleDocumentWithHeader.java
@@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-package org.apache.poi.xwpf.usermodel;
+package org.apache.poi.xwpf.usermodel.examples;
import java.io.File;
import java.io.FileOutputStream;
diff --git a/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleImages.java b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/SimpleImages.java
index 10e48d1aed..7e95c7a7f3 100644
--- a/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleImages.java
+++ b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/SimpleImages.java
@@ -16,9 +16,13 @@
* limitations under the License.
* ====================================================================
*/
-package org.apache.poi.xwpf.usermodel;
+package org.apache.poi.xwpf.usermodel.examples;
import org.apache.poi.util.Units;
+import org.apache.poi.xwpf.usermodel.BreakType;
+import org.apache.poi.xwpf.usermodel.XWPFDocument;
+import org.apache.poi.xwpf.usermodel.XWPFParagraph;
+import org.apache.poi.xwpf.usermodel.XWPFRun;
import java.io.FileInputStream;
import java.io.FileOutputStream;
diff --git a/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleTable.java b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/SimpleTable.java
index 387ab449b0..a3857ff2e7 100644
--- a/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleTable.java
+++ b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/SimpleTable.java
@@ -14,13 +14,21 @@
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-package org.apache.poi.xwpf.usermodel;
+package org.apache.poi.xwpf.usermodel.examples;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.math.BigInteger;
import java.util.List;
+import org.apache.poi.xwpf.usermodel.ParagraphAlignment;
+import org.apache.poi.xwpf.usermodel.UnderlinePatterns;
+import org.apache.poi.xwpf.usermodel.XWPFDocument;
+import org.apache.poi.xwpf.usermodel.XWPFParagraph;
+import org.apache.poi.xwpf.usermodel.XWPFRun;
+import org.apache.poi.xwpf.usermodel.XWPFTable;
+import org.apache.poi.xwpf.usermodel.XWPFTableCell;
+import org.apache.poi.xwpf.usermodel.XWPFTableRow;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString;
diff --git a/src/examples/src/org/apache/poi/xwpf/usermodel/UpdateEmbeddedDoc.java b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/UpdateEmbeddedDoc.java
index 06493ce356..410f3c62f7 100644
--- a/src/examples/src/org/apache/poi/xwpf/usermodel/UpdateEmbeddedDoc.java
+++ b/src/examples/src/org/apache/poi/xwpf/usermodel/examples/UpdateEmbeddedDoc.java
@@ -17,7 +17,7 @@
* ====================================================================
*/
-package org.apache.poi.xwpf.usermodel;
+package org.apache.poi.xwpf.usermodel.examples;
import static org.junit.Assert.assertEquals;
@@ -32,6 +32,7 @@ import java.util.Iterator;
import org.apache.poi.openxml4j.opc.PackagePart;
import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
import org.apache.poi.ss.usermodel.WorkbookFactory;
+import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Row;