int imageWidth = image.getBounds().width; int imageHeight;
public void test_getImageBoundsI() {/** * Test without item image */	Rectangle bounds;	Table table2 = new Table(shell, SWT.CHECK);	TableItem tableItem2 = new TableItem(table2, SWT.NULL);		assertEquals(new Rectangle(0, 0, 0, 0), tableItem.getImageBounds(-1));		bounds = tableItem.getImageBounds(0);	assertTrue(":b:", bounds.width == 0);		assertEquals(new Rectangle(0, 0, 0, 0), tableItem.getImageBounds(1));		assertEquals(new Rectangle(0, 0, 0, 0), tableItem2.getImageBounds(-1));		bounds = tableItem2.getImageBounds(0);	assertTrue(":e:", bounds.width == 0);		assertEquals(new Rectangle(0, 0, 0, 0), tableItem2.getImageBounds(1)); 	//	makeCleanEnvironment();		Image image = images[0];		int imageWidth = image.getBounds().width;	int imageHeight;		tableItem.setImage(0, image);	imageHeight = table.getItemHeight() - table.getGridLineWidth();	assertEquals(new Rectangle(0, 0, 0, 0), tableItem.getImageBounds(-1));		bounds = tableItem.getImageBounds(0);//	assertTrue(":b:", bounds.x > 0 && bounds.width == imageWidth && bounds.height == imageHeight);	// 	assertEquals(new Rectangle(0, 0, 0, 0), tableItem.getImageBounds(1));		//	makeCleanEnvironment();			table2.dispose();	table2 = new Table(shell, SWT.CHECK);	tableItem2.dispose();	tableItem2 = new TableItem(table2, SWT.NULL);	Rectangle imageBounds = image.getBounds();	imageWidth = imageBounds.width; 	tableItem2.setImage(0, image);	imageHeight = table2.getItemHeight() - table2.getGridLineWidth();	assertEquals(new Rectangle(0, 0, 0, 0), tableItem2.getImageBounds(-1));		bounds = tableItem2.getImageBounds(0);	// bounds.width should be check box width if they are wider than image//	assertTrue(":b:", bounds.x > 0 && bounds.width > 0 && bounds.height == imageHeight);// 	assertEquals(new Rectangle(0, 0, 0, 0), tableItem2.getImageBounds(1));		//	makeCleanEnvironment();	table2.dispose();	table2 = new Table(shell, SWT.CHECK);	tableItem2.dispose();	tableItem2 = new TableItem(table2, SWT.NULL);	image = images[1];	imageBounds = image.getBounds();	imageWidth = imageBounds.width; 	tableItem2.setImage(0, image);	imageHeight = table2.getItemHeight() - table2.getGridLineWidth();	assertEquals(new Rectangle(0, 0, 0, 0), tableItem2.getImageBounds(-1)); 	bounds = tableItem2.getImageBounds(0);	// bounds.width should be check box width if check box is wider than image//	assertTrue(":b:", bounds.x > 0 && bounds.width > 0 && bounds.height == imageHeight); 	assertEquals(new Rectangle(0, 0, 0, 0), tableItem2.getImageBounds(1));}