Undo a toString() removal for a case where it is actually necessary.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1583571 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1c987c38e6
commit
aef13a344a
@ -31,8 +31,8 @@ public final class TestEscherGraphics2d extends TestCase {
|
|||||||
private HSSFShapeGroup escherGroup;
|
private HSSFShapeGroup escherGroup;
|
||||||
private EscherGraphics2d graphics;
|
private EscherGraphics2d graphics;
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void setUp() {
|
protected void setUp() {
|
||||||
|
|
||||||
HSSFWorkbook workbook = new HSSFWorkbook();
|
HSSFWorkbook workbook = new HSSFWorkbook();
|
||||||
HSSFSheet sheet = workbook.createSheet("test");
|
HSSFSheet sheet = workbook.createSheet("test");
|
||||||
escherGroup = sheet.createDrawingPatriarch().createGroup(new HSSFClientAnchor(0,0,1023,255,(short)0,0,(short) 0,0));
|
escherGroup = sheet.createDrawingPatriarch().createGroup(new HSSFClientAnchor(0,0,1023,255,(short)0,0,(short) 0,0));
|
||||||
@ -44,7 +44,7 @@ public final class TestEscherGraphics2d extends TestCase {
|
|||||||
public void testDrawString() {
|
public void testDrawString() {
|
||||||
graphics.drawString("This is a test", 10, 10);
|
graphics.drawString("This is a test", 10, 10);
|
||||||
HSSFTextbox t = (HSSFTextbox) escherGroup.getChildren().get(0);
|
HSSFTextbox t = (HSSFTextbox) escherGroup.getChildren().get(0);
|
||||||
assertEquals("This is a test", t.getString());
|
assertEquals("This is a test", t.getString().getString());
|
||||||
|
|
||||||
// Check that with a valid font, it's still ok
|
// Check that with a valid font, it's still ok
|
||||||
Font font = new Font("Forte", Font.PLAIN, 12);
|
Font font = new Font("Forte", Font.PLAIN, 12);
|
||||||
|
Loading…
Reference in New Issue
Block a user