Bug 129900 Designer unit test has failures and errors in daily build 20060301
please see attached log file.
UI/org.eclipse.birt.report.designer.tests/test/org/eclipse/birt/report/designer/core/commands/SetConstraintCommandTest.java
cmd.setModel( dataItem );
		cmd.setSize( size );
		cmd.execute( );
		DimensionHandle width = dataItem.getWidth( );
		DimensionHandle height = dataItem.getHeight( );
		assertTrue( width.getUnits( ).equals( DesignChoiceConstants.UNITS_IN ) );
		assertTrue( height.getUnits( ).equals( DesignChoiceConstants.UNITS_IN ) );
		double widthPixel = MetricUtility.inchToPixel( width.getMeasure( ) );
		double heightPixel = MetricUtility.inchToPixel( height.getMeasure( ) );
		assertEquals( 100, (int) widthPixel );
		assertEquals( 50, (int) heightPixel );
	}
	public void testSetConstraintLabelCmd( )
	{
		LabelHandle label = getElementFactory( ).newLabel( "TestLabel" );
		SetConstraintCommand cmd = new SetConstraintCommand( );
		Dimension size = new Dimension( 50, 100 ); 
		cmd.setModel( label );
		cmd.setSize( size );
		cmd.execute( );
		DimensionHandle width = label.getWidth( );
		DimensionHandle height = label.getHeight( );
		assertTrue( width.getUnits( ).equals( DesignChoiceConstants.UNITS_IN ) );
		assertTrue( height.getUnits( ).equals( DesignChoiceConstants.UNITS_IN ) );
		double widthPixel = MetricUtility.inchToPixel( width.getMeasure( ) );
		double heightPixel = MetricUtility.inchToPixel( height.getMeasure( ) );
		assertEquals( 50, (int) widthPixel );
		assertEquals( 100, (int) heightPixel );
	}
}