Bug 193637 The joint condition is missing in report design when using a cube from library[1102]
Description: The joint condition is missing in report design when using a cube from library[1102] Build number: 2.2.0.v20070621-0630 Steps to reproduce: 1, New a cube has joint condition in library 2, New a report and using the cube from library 3, Preview 4, Go back and check the joint condition in cube in report design Expected result: After step3, the preview should be successful and after step4, the joint condition should be as same as library Actual result: After step3, joint condition key is missing warning occurs when preview After step4, the joint condition is not joining two keys.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ModuleUtilTest.java
sessionHandle = new DesignEngine( null )
				.newSessionHandle( ULocale.ENGLISH );
		assertNotNull( sessionHandle );
		String fileName = INPUT_FOLDER + "CellHandleTest.xml"; 
		InputStream inputStream = getResourceAStream( fileName );
		int rtnType = ModuleUtil.checkModule( sessionHandle, getResource(
				fileName ).toString( ), inputStream );
		assertEquals( ModuleUtil.REPORT_DESIGN, rtnType );
		fileName = INPUT_FOLDER + "Library_1.xml"; 
		inputStream = getResourceAStream( fileName );
		rtnType = ModuleUtil.checkModule( sessionHandle, getResource( fileName )
				.toString( ), inputStream );
		assertEquals( ModuleUtil.LIBRARY, rtnType );
		fileName = INPUT_FOLDER + "InValidDesign.xml"; 
		inputStream = getResourceAStream( fileName );
		rtnType = ModuleUtil.checkModule( sessionHandle, getResource( fileName )
				.toString( ), inputStream );
		assertEquals( ModuleUtil.INVALID_MODULE, rtnType );
		fileName = INPUT_FOLDER + "InValidLibrary.xml"; 
		inputStream = getResourceAStream( fileName );
		rtnType = ModuleUtil.checkModule( sessionHandle, getResource( fileName )
				.toString( ), inputStream );
		assertEquals( ModuleUtil.INVALID_MODULE, rtnType );
	}
	/**
	 * Test CheckVersion.
	 * 
	 * Cases:
	 * <ul>
	 * <li>test design file with version value "1".