Author: centic
Date: Tue Apr 1 08:28:52 2014
New Revision: 1583571
URL: http://svn.apache.org/r1583571
Log:
Undo a toString() removal for a case where it is actually necessary.
Modified:
poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java
Modified:
poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java?rev=1583571&r1=1583570&r2=1583571&view=diff
==============================================================================
---
poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java
(original)
+++
poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java
Tue Apr 1 08:28:52 2014
@@ -31,8 +31,8 @@ public final class TestEscherGraphics2d
private HSSFShapeGroup escherGroup;
private EscherGraphics2d graphics;
- protected void setUp() {
-
+ @Override
+ protected void setUp() {
HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet sheet = workbook.createSheet("test");
escherGroup = sheet.createDrawingPatriarch().createGroup(new
HSSFClientAnchor(0,0,1023,255,(short)0,0,(short) 0,0));
@@ -44,7 +44,7 @@ public final class TestEscherGraphics2d
public void testDrawString() {
graphics.drawString("This is a test", 10, 10);
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
Font font = new Font("Forte", Font.PLAIN, 12);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]