cmd.setPointList(pointList);
cmd.execute();
assertTrue(document.getRoot().getVisibleChildElements().size() == 1);
LayoutElementRecord polyLine = (LayoutElementRecord) document.getRoot()
.getVisibleChildElements().get(0);
assertTrue(polyLine.getVisibleAttributes().size() == 1);
origPointsAttribute = polyLine
.getAttributeValue(SVGConstants.SVG_POINTS_ATTRIBUTE);
assertNotNull(origPointsAttribute);
// }
//
// @Test
// public void testConflictingSetRecords() {
Point locOrig = polyLine.getLocation();
Point loc1 = new Point(10, 10);
Rectangle rect1 = new Rectangle(loc1, polyLine.getSize());
ElementRecordChangeLayoutCommand cmd1 = new ElementRecordChangeLayoutCommand();
cmd1.setModel(polyLine);
cmd1.setConstraint(rect1);
cmd1.execute();
assertTrue(polyLine.getLocation().equals(loc1));
Point loc2 = new Point(20, 20);
Rectangle rect2 = new Rectangle(loc2, polyLine.getSize());
ElementRecordChangeLayoutCommand cmd2 = new ElementRecordChangeLayoutCommand();
cmd2.setModel(polyLine);
cmd2.setConstraint(rect2);
ConflictingSXECommand conflict2 = new ConflictingSXECommand(cmd2);
conflict2.execute();
assertTrue(polyLine.getLocation().equals(locOrig));
}