diff options
author | Evgeniy Berlog <berlog@apache.org> | 2012-08-02 19:52:47 +0000 |
---|---|---|
committer | Evgeniy Berlog <berlog@apache.org> | 2012-08-02 19:52:47 +0000 |
commit | 3786b5d599afa60e320b8ef3e20f03650dbc9a07 (patch) | |
tree | 03a893e49c4e231d8e9d7adb67de6ad531bdfed2 /src/testcases/org/apache/poi/hssf/model/TestDrawingShapes.java | |
parent | 9a2b63d59e2557efd52f2e2493a7921a65e53eda (diff) | |
download | poi-3786b5d599afa60e320b8ef3e20f03650dbc9a07.tar.gz poi-3786b5d599afa60e320b8ef3e20f03650dbc9a07.zip |
fixed compilation for jdk 1.5
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/gsoc2012@1368670 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/model/TestDrawingShapes.java')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/model/TestDrawingShapes.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/testcases/org/apache/poi/hssf/model/TestDrawingShapes.java b/src/testcases/org/apache/poi/hssf/model/TestDrawingShapes.java index f9f35ce406..6a1638335d 100644 --- a/src/testcases/org/apache/poi/hssf/model/TestDrawingShapes.java +++ b/src/testcases/org/apache/poi/hssf/model/TestDrawingShapes.java @@ -351,13 +351,15 @@ public class TestDrawingShapes extends TestCase { String opt1Str = opt.toXml();
textbox.setFillColor(textbox.getFillColor());
- assertEquals(opt1Str, HSSFTestHelper.getEscherContainer(textbox).getChildById(EscherOptRecord.RECORD_ID).toXml());
+ EscherContainerRecord container = HSSFTestHelper.getEscherContainer(textbox);
+ EscherOptRecord optRecord = container.getChildById(EscherOptRecord.RECORD_ID);
+ assertEquals(opt1Str, optRecord.toXml());
textbox.setLineStyle(textbox.getLineStyle());
- assertEquals(opt1Str, HSSFTestHelper.getEscherContainer(textbox).getChildById(EscherOptRecord.RECORD_ID).toXml());
+ assertEquals(opt1Str, optRecord.toXml());
textbox.setLineWidth(textbox.getLineWidth());
- assertEquals(opt1Str, HSSFTestHelper.getEscherContainer(textbox).getChildById(EscherOptRecord.RECORD_ID).toXml());
+ assertEquals(opt1Str, optRecord.toXml());
textbox.setLineStyleColor(textbox.getLineStyleColor());
- assertEquals(opt1Str, HSSFTestHelper.getEscherContainer(textbox).getChildById(EscherOptRecord.RECORD_ID).toXml());
+ assertEquals(opt1Str, optRecord.toXml());
}
public void testDgRecordNumShapes(){
|