aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/model/TestDrawingShapes.java
diff options
context:
space:
mode:
authorEvgeniy Berlog <berlog@apache.org>2012-07-19 19:02:43 +0000
committerEvgeniy Berlog <berlog@apache.org>2012-07-19 19:02:43 +0000
commit4e646a718235a622fde308eab8e66698204f923d (patch)
treedaad2a2396cb5712ac981bd733d5da36ca722e43 /src/testcases/org/apache/poi/hssf/model/TestDrawingShapes.java
parent47dd4545797ec8e0e789445931d3897a98cf384c (diff)
downloadpoi-4e646a718235a622fde308eab8e66698204f923d.tar.gz
poi-4e646a718235a622fde308eab8e66698204f923d.zip
implemented cloning of shapes
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/gsoc2012@1363479 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.java6
1 files changed, 2 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 dd8882764f..e57a1b4372 100644
--- a/src/testcases/org/apache/poi/hssf/model/TestDrawingShapes.java
+++ b/src/testcases/org/apache/poi/hssf/model/TestDrawingShapes.java
@@ -352,8 +352,7 @@ public class TestDrawingShapes extends TestCase {
shape.setShapeType(HSSFSimpleShape.OBJECT_TYPE_RECTANGLE);
EscherAggregate agg = HSSFTestHelper.getEscherAggregate(patriarch);
- assertNull(shape.getEscherContainer().getChildById(EscherTextboxRecord.RECORD_ID));
- assertEquals(agg.getShapeToObjMapping().size(), 1);
+ assertEquals(agg.getShapeToObjMapping().size(), 2);
wb = HSSFTestDataSamples.writeOutAndReadBack(wb);
sheet = wb.getSheetAt(0);
@@ -362,8 +361,7 @@ public class TestDrawingShapes extends TestCase {
shape = (HSSFSimpleShape) patriarch.getChildren().get(0);
agg = HSSFTestHelper.getEscherAggregate(patriarch);
- assertNull(shape.getEscherContainer().getChildById(EscherTextboxRecord.RECORD_ID));
- assertEquals(agg.getShapeToObjMapping().size(), 1);
+ assertEquals(agg.getShapeToObjMapping().size(), 2);
shape.setString(new HSSFRichTextString("string1"));
assertEquals(shape.getString().getString(), "string1");