Bug 198604 After refresh the library, the link groups key are changed in cube builder[1101]
Description: After refresh the library, the link groups key are changed in cube builder[1101] Build number: 2.2.1.v20070802-0630 Steps to reproduce: 1, New a cube in library, the cube has a joint key between dimension table and facttable 2, Using the cube in a report design 3, Check the joint status in link group 4, Refresh the library in outline 5, Recheck the joint staus in link group Expected result: After step5, the joint status are correct and as same as the status in library Actual result: The dimension table is missing and the joint key is disconnected
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/library/ReloadLibraryTest.java
List fileNames = new ArrayList( );
		fileNames.add( INPUT_FOLDER + "DesignToReloadLibrary.xml" ); 
		fileNames.add( INPUT_FOLDER + "LibraryToReload.xml" ); 
		fileNames.add( INPUT_FOLDER + "Library_1.xml" ); 
		List filePaths = dumpDesignAndLibrariesToFile( fileNames );
		String designFilePath = (String) filePaths.get( 0 );
		openDesign( designFilePath, false );
		String lib1FilePath = (String) filePaths.get( 2 );
		openLibrary( lib1FilePath, false );
		try
		{
			designHandle.reloadLibrary( libraryHandle );
			fail( );
		}
		catch ( SemanticException e )
		{
			assertEquals( LibraryException.DESIGN_EXCEPTION_LIBRARY_NOT_FOUND,
					e.getErrorCode( ) );
		}
		String libFilePath = (String) filePaths.get( 1 );
		openLibrary( libFilePath, false );
		File f = new File( libFilePath );
		if ( f.exists( ) )
			f.delete( );
		designHandle.reloadLibrary( libraryHandle );
		assertNull( designHandle.findElement( "table1" ).getExtends( ) ); 
		assertNotNull( designHandle
				.findElement( "table1" ).getStringProperty( DesignElementHandle.EXTENDS_PROP ) ); 
		InputStream fis = getResourceAStream( INPUT_FOLDER
				+ "LibraryToReload_errors.xml" );