aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/usermodel/TestShapeGroup.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/usermodel/TestShapeGroup.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/usermodel/TestShapeGroup.java')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestShapeGroup.java23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestShapeGroup.java b/src/testcases/org/apache/poi/hssf/usermodel/TestShapeGroup.java
index 5eb93f6e3e..f0ce3f2801 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestShapeGroup.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestShapeGroup.java
@@ -17,29 +17,6 @@ import java.util.Map;
*/
public class TestShapeGroup extends TestCase{
- public void testResultEqualsToAbstractShape() {
- HSSFWorkbook wb = new HSSFWorkbook();
- HSSFSheet sheet = wb.createSheet();
- HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
- HSSFShapeGroup group = patriarch.createGroup(new HSSFClientAnchor());
-
- EscherContainerRecord container = new EscherContainerRecord();
- Map shapeToObj = new HashMap();
- HSSFTestHelper.convertHSSFGroup(group, container, shapeToObj);
-
- byte [] actual = group.getEscherContainer().serialize();
- byte [] expected = container.getChild(0).serialize();
-
- assertEquals(actual.length, expected.length);
- assertTrue(Arrays.equals(actual, expected));
-
- actual = group.getObjRecord().serialize();
- expected = ((ObjRecord)shapeToObj.values().toArray()[0]).serialize();
-
- assertEquals(actual.length, expected.length);
- assertTrue(Arrays.equals(actual, expected));
- }
-
public void testSetGetCoordinates(){
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sh = wb.createSheet();