aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2014-04-01 08:28:52 +0000
committerDominik Stadler <centic@apache.org>2014-04-01 08:28:52 +0000
commit0d1d0bf14a033d79550eb0d932c619a9c8b99322 (patch)
tree722ccb10c31dd58a9b2362be5b84474ed140407f /src
parenta242fea6973dd970de338d29fa138d8516fcb85d (diff)
downloadpoi-0d1d0bf14a033d79550eb0d932c619a9c8b99322.tar.gz
poi-0d1d0bf14a033d79550eb0d932c619a9c8b99322.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java b/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java
index a16033efb3..dc3d5f42ce 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java
@@ -31,8 +31,8 @@ public final class TestEscherGraphics2d extends TestCase {
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 extends TestCase {
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);