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
assertNotNull( handle );
		handle = factory.newTableRow( );
		assertNotNull( handle );
		handle = factory.newTextItem( "new text" ); 
		assertNotNull( handle );
	}
	/**
	 * Tests the table item with factory method.
	 */
	public void testNewTableItem( )
	{
		assertFalse( designHandle.needsSave( ) );
		ElementFactory factory = new ElementFactory( design );
		TableHandle tableHandle1 = factory.newTableItem( "Table1", 2 ); 
		assertFalse( designHandle.needsSave( ) );
		assertEquals( "Table1", tableHandle1.getName( ) ); 
		assertEquals( 1, tableHandle1.getHeader( ).getCount( ) );
		assertEquals( 1, tableHandle1.getFooter( ).getCount( ) );
		assertEquals( 1, tableHandle1.getDetail( ).getCount( ) );
		assertEquals( 2, tableHandle1.getColumns( ).getCount( ) );
		
		
		RowHandle rowHandle = (RowHandle) tableHandle1.getHeader( ).get( 0 );
		assertEquals( 2, rowHandle.getCells( ).getCount( ) );
		assertEquals( tableHandle1, rowHandle.getContainer( ) );
		rowHandle = (RowHandle) tableHandle1.getFooter( ).get( 0 );
		assertEquals( 2, rowHandle.getCells( ).getCount( ) );
		assertEquals( tableHandle1, rowHandle.getContainer( ) );
		rowHandle = (RowHandle) tableHandle1.getDetail( ).get( 0 );
		assertEquals( 2, rowHandle.getCells( ).getCount( ) );