mirror of
https://github.com/apache/poi.git
synced 2026-02-27 12:30:08 +08:00
te
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3c7d8dc8bc
commit
c1dc0c6130
@ -62,9 +62,10 @@ public final class TestLine {
|
||||
@Test
|
||||
void testCreateLines() throws IOException {
|
||||
|
||||
final String title = "Lines tester";
|
||||
try (HSLFSlideShow ppt1 = new HSLFSlideShow()) {
|
||||
HSLFSlide slide1 = ppt1.createSlide();
|
||||
slide1.addTitle().setText("Lines tester");
|
||||
slide1.addTitle().setText(title);
|
||||
|
||||
for (Object[] line : lines) {
|
||||
HSLFLine hslfLine = new HSLFLine();
|
||||
@ -85,6 +86,7 @@ public final class TestLine {
|
||||
|
||||
try (HSLFSlideShow ppt2 = HSLFTestDataSamples.writeOutAndReadBack(ppt1)) {
|
||||
HSLFSlide slide2 = ppt2.getSlides().get(0);
|
||||
assertEquals(title, slide2.getTitle());
|
||||
|
||||
int idx = 0;
|
||||
for (HSLFShape shape : slide2.getShapes().subList(1,14)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user