Bug 186940 Style name in theme cannot be identify by auto when reopen the library[01]
Description: Style name in theme cannot be identify by auto when reopen the library[01] Step: 1.Open a library and add a theme 2.New a style on the theme and use the default name that is "NewStyle" 3.Save the library, close it and reopen it again. 4.New another style on the same theme Actual result: The default style name on second times is also "NewStyle" Exception result: The default style name on second times is "NewStyle1"
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ElementFactoryTest.java
for ( int i = 0; i < 6; i++ )
		{
			rowHandle = (RowHandle) tableHandle2.getFooter( ).get( i );
			assertEquals( 3, rowHandle.getCells( ).getCount( ) );
			for ( int j = 0; j < 2; j++ )
			{
				assertEquals( rowHandle, rowHandle.getCells( ).get( j )
						.getContainer( ) );
			}
		}
		TableHandle tableHandle3 = factory.newTableItem(
				"Table3", -1, -1, -1, -1 ); 
		assertEquals( "Table3", tableHandle3.getName( ) ); 
		assertEquals( 0, tableHandle3.getHeader( ).getCount( ) );
		assertEquals( 0, tableHandle3.getFooter( ).getCount( ) );
		assertEquals( 0, tableHandle3.getDetail( ).getCount( ) );
		assertEquals( 0, tableHandle3.getColumns( ).getCount( ) );
	}
	/**
	 * Tests the grid item with factory method.
	 */
	public void testNewGridItem( )
	{
		assertFalse( designHandle.needsSave( ) );
		ElementFactory factory = new ElementFactory( design );
		GridHandle gridHandle1 = factory.newGridItem( "Grid1", 2, 3 ); 
		assertFalse( designHandle.needsSave( ) );
		assertEquals( 2, gridHandle1.getColumns( ).getCount( ) );
		assertEquals( 3, gridHandle1.getRows( ).getCount( ) );