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:
parent
a1b8f3ff14
commit
f062e7f1c2
@ -67,7 +67,7 @@ public class TestXWPFChart extends TestCase {
|
|||||||
CTRegularTextRun r = p.addNewR();
|
CTRegularTextRun r = p.addNewR();
|
||||||
r.addNewRPr();
|
r.addNewRPr();
|
||||||
r.setT("XWPF CHART");
|
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
|
* test method to check relationship
|
||||||
@ -79,9 +79,9 @@ public class TestXWPFChart extends TestCase {
|
|||||||
XWPFDocument sampleDoc = XWPFTestDataSamples.openSampleDocument("61745.docx");
|
XWPFDocument sampleDoc = XWPFTestDataSamples.openSampleDocument("61745.docx");
|
||||||
List<XWPFChart> charts = sampleDoc.getCharts();
|
List<XWPFChart> charts = sampleDoc.getCharts();
|
||||||
XWPFChart chart=charts.get(0);
|
XWPFChart chart=charts.get(0);
|
||||||
assertEquals(XWPFRelation.CHART.getContentType(), chart.getPackagePart().getContentType().toString());
|
assertEquals(XWPFRelation.CHART.getContentType(), chart.getPackagePart().getContentType());
|
||||||
assertEquals("/word/document.xml", chart.getParent().getPackagePart().getPartName().toString());
|
assertEquals("/word/document.xml", chart.getParent().getPackagePart().getPartName());
|
||||||
assertEquals("/word/charts/chart1.xml", chart.getPackagePart().getPartName().toString());
|
assertEquals("/word/charts/chart1.xml", chart.getPackagePart().getPartName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user