Author: centic
Date: Mon Nov 13 11:44:50 2017
New Revision: 1815085

URL: http://svn.apache.org/viewvc?rev=1815085&view=rev
Log:
Fix tests

Modified:
    
poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFChart.java

Modified: 
poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFChart.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFChart.java?rev=1815085&r1=1815084&r2=1815085&view=diff
==============================================================================
--- 
poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFChart.java 
(original)
+++ 
poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFChart.java 
Mon Nov 13 11:44:50 2017
@@ -34,8 +34,6 @@ public class TestXWPFChart extends TestC
 
     /**
      * test method to check charts are null
-     *
-     * @throws IOException
      */
     public void testRead() throws IOException
     {
@@ -49,8 +47,6 @@ public class TestXWPFChart extends TestC
     
     /**
      * 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 TestC
     }
     /**
      * test method to check relationship
-     *
-     * @throws IOException
      */
     public void testChartRelation() throws IOException
     {
@@ -80,8 +74,7 @@ public class TestXWPFChart extends TestC
         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());
     }
 }
-



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to