bug 61745: remove String#toString() usage found by forbidden apis check

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1815048 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2017-11-13 00:51:41 +00:00
parent d96f9ce495
commit 6f44566f0a
1 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ public class TestXWPFChart extends TestCase {
CTRegularTextRun r = p.addNewR();
r.addNewRPr();
r.setT("XWPF CHART");
assertEquals("XWPF CHART", chart.getCTChart().getTitle().getTx().getRich().getPArray(0).getRArray(0).getT().toString());
assertEquals("XWPF CHART", chart.getCTChart().getTitle().getTx().getRich().getPArray(0).getRArray(0).getT());
}
/**
* test method to check relationship
@ -79,9 +79,9 @@ public class TestXWPFChart extends TestCase {
XWPFDocument sampleDoc = XWPFTestDataSamples.openSampleDocument("61745.docx");
List<XWPFChart> charts = sampleDoc.getCharts();
XWPFChart chart=charts.get(0);
assertEquals(XWPFRelation.CHART.getContentType(), chart.getPackagePart().getContentType().toString());
assertEquals("/word/document.xml", chart.getParent().getPackagePart().getPartName().toString());
assertEquals("/word/charts/chart1.xml", chart.getPackagePart().getPartName().toString());
assertEquals(XWPFRelation.CHART.getContentType(), chart.getPackagePart().getContentType());
assertEquals("/word/document.xml", chart.getParent().getPackagePart().getPartName());
assertEquals("/word/charts/chart1.xml", chart.getPackagePart().getPartName());
}
}