aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-11-13 11:44:50 +0000
committerDominik Stadler <centic@apache.org>2017-11-13 11:44:50 +0000
commita08aa73916fe093a8f4609bae7161e7ee7c8daa7 (patch)
tree3335d986a0d52e35dc41122914c5c7879ba0d887
parent6f44566f0aed259d3f8adfa8ea565c0e244132fb (diff)
downloadpoi-a08aa73916fe093a8f4609bae7161e7ee7c8daa7.tar.gz
poi-a08aa73916fe093a8f4609bae7161e7ee7c8daa7.zip
Fix tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1815085 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFChart.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFChart.java b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFChart.java
index b9f2f5a656..1cb233dade 100644
--- a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFChart.java
+++ b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFChart.java
@@ -34,8 +34,6 @@ public class TestXWPFChart extends TestCase {
/**
* test method to check charts are null
- *
- * @throws IOException
*/
public void testRead() throws IOException
{
@@ -49,8 +47,6 @@ public class TestXWPFChart extends TestCase {
/**
* test method to add chart title and check whether it's set
- *
- * @throws IOException
*/
public void testChartTitle() throws IOException
{
@@ -71,8 +67,6 @@ public class TestXWPFChart extends TestCase {
}
/**
* test method to check relationship
- *
- * @throws IOException
*/
public void testChartRelation() throws IOException
{
@@ -80,8 +74,7 @@ public class TestXWPFChart extends TestCase {
List<XWPFChart> charts = sampleDoc.getCharts();
XWPFChart chart=charts.get(0);
assertEquals(XWPFRelation.CHART.getContentType(), chart.getPackagePart().getContentType());
- assertEquals("/word/document.xml", chart.getParent().getPackagePart().getPartName());
- assertEquals("/word/charts/chart1.xml", chart.getPackagePart().getPartName());
+ assertEquals("/word/document.xml", chart.getParent().getPackagePart().getPartName().getName());
+ assertEquals("/word/charts/chart1.xml", chart.getPackagePart().getPartName().getName());
}
}
-