Iterator joinConditionsIterator = jointds3.joinConditionsIterator( ); JoinConditionHandle joinConditionHandle = (JoinConditionHandle) joinConditionsIterator .next( ); joinConditionHandle.setLeftDataSet("ds1"); joinConditionHandle.setLeftDataSet("ds2");
	public void testJointDataSetType( ) throws Exception	{		openDesign(filename1);		JointDataSetHandle jointds1 = designHandle.findJointDataSet("jointds1");				//heterogeneous data sets		jointds1.addDataSet("ds1");		jointds1.addDataSet("ds2");        assertEquals(2,jointds1.getListProperty(JointDataSet.DATA_SETS_PROP).size());					//homogeneous data sets		JointDataSetHandle jointds2 = designHandle.findJointDataSet("jointds2");		jointds2.addDataSet("ds1");		jointds2.addDataSet("ds2");		assertEquals(2,jointds2.getListProperty(JointDataSet.DATA_SETS_PROP).size());				//self-join		JointDataSetHandle jointds3 = designHandle.findJointDataSet("jointds3");		jointds3.addDataSet("ds1");		assertEquals(1,jointds3.getListProperty(JointDataSet.DATA_SETS_PROP).size());		Iterator joinConditionsIterator = jointds3.joinConditionsIterator( );		JoinConditionHandle joinConditionHandle = (JoinConditionHandle) joinConditionsIterator				.next( );		joinConditionHandle.setLeftDataSet("ds1");		joinConditionHandle.setLeftDataSet("ds2");	}