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/GroupElementHandleTest.java
elemDefn2.addProperty( prop2 );
		elemDefn2.addProperty( prop3 );
		elemDefn3.addProperty( prop3 );
		elemDefn3.addProperty( prop4 );
		elemDefn3.addProperty( prop5 );
		elemDefn1.build( );
		elemDefn2.build( );
		elemDefn3.build( );
		DesignElementHandle handle1 = new FakeElementHandle( design,
				new MockupDesignElement( elemDefn1 ) );
		DesignElementHandle handle2 = new FakeElementHandle( design,
				new MockupDesignElement( elemDefn2 ) );
		DesignElementHandle handle3 = new FakeElementHandle( design,
				new MockupDesignElement( elemDefn3 ) );
		ArrayList elements = new ArrayList( );
		elements.add( handle1 );
		elements.add( handle2 );
		elements.add( handle3 );
		GroupElementHandle groupElementHandle = new SimpleGroupElementHandle(
				designHandle, elements );
		assertEquals( elements.size( ), groupElementHandle.getElements( )
				.size( ) );
		List commProperties = groupElementHandle.getCommonProperties( );
		assertEquals( 1, commProperties.size( ) );
		assertEquals(
				"prop3", ( (PropertyDefn) commProperties.get( 0 ) ).getName( ) );