assertEquals( 0, dgg.getNumShapesSaved() );
}
public void testAllocateShapeId() throws Exception
{
EscherDgRecord dgRecord1 = drawingManager2.createDgRecord();
EscherDgRecord dgRecord2 = drawingManager2.createDgRecord();
assertEquals( 1024, drawingManager2.allocateShapeId( (short)1 ) );
assertEquals( 1024, dgRecord1.getLastMSOSPID() );
assertEquals( 1025, dgg.getShapeIdMax() );
assertEquals( 1025, drawingManager2.allocateShapeId( (short)1 ) );
assertEquals( 1025, dgRecord1.getLastMSOSPID() );
assertEquals( 1026, dgg.getShapeIdMax() );
assertEquals( 1026, drawingManager2.allocateShapeId( (short)1 ) );
assertEquals( 1026, dgRecord1.getLastMSOSPID() );
assertEquals( 1027, dgg.getShapeIdMax() );
assertEquals( 2048, drawingManager2.allocateShapeId( (short)2 ) );
assertEquals( 2048, dgRecord2.getLastMSOSPID() );
assertEquals( 2049, dgg.getShapeIdMax() );
for (int i = 0; i < 1021; i++)
{
drawingManager2.allocateShapeId( (short)1 );