Bug 194843 Cross tab Cube - Cannot delete a dimension using the cube builder
- Open the attached report design - Delete the "Region" group. Current behavior - Does now allow me to delete the group.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/command/ContentCommandTest.java
/**
	 * Test after delete an element, whether references on the deleted contented
	 * were adjusted correctly.
	 * 
	 * Test case:
	 * 
	 * <ul>
	 * <li>Drop and detach referenceable element
	 * <li>Drop referenceable element
	 * </ul>
	 * 
	 * @throws Exception
	 */
	public void testElementReferenceAfterDeletionAndDetachment( )
			throws Exception
	{
		
		createDataSourceAndDataSet( );
		DataSourceHandle dataSourceHandle = designHandle
				.findDataSource( "dataSource" );
		DataSetHandle dataSetHandle = designHandle.findDataSet( "dataSet" );
		dataSourceHandle.dropAndClear( );
		assertEquals( null, dataSetHandle.getDataSourceName( ) );
		assertEquals( null, dataSetHandle.getDataSource( ) );
		Iterator iter = dataSourceHandle.clientsIterator( );
		assertEquals( false, iter.hasNext( ) );
		designHandle.getCommandStack( ).undo( );
		assertEquals( dataSourceHandle.getName( ), dataSetHandle
				.getDataSourceName( ) );
		assertEquals( dataSourceHandle, dataSetHandle.getDataSource( ) );