@@ -101,22 +101,22 @@ public void setUp() {
101101
102102@ Test
103103public void test_ConstructorLorg_eclipse_swt_graphics_DeviceII () {
104- IllegalArgumentException e1 = assertThrows (IllegalArgumentException .class , () -> new Image (display , ( gc , width , height ) -> {}, -1 , 10 ));
104+ IllegalArgumentException e1 = assertThrows (IllegalArgumentException .class , () -> new Image (display , -1 , 10 ));
105105 assertSWTProblem ("Incorrect exception thrown for width < 0" , SWT .ERROR_INVALID_ARGUMENT , e1 );
106106
107- IllegalArgumentException e2 = assertThrows (IllegalArgumentException .class , () -> new Image (display , ( gc , width , height ) -> {}, 0 , 10 ));
107+ IllegalArgumentException e2 = assertThrows (IllegalArgumentException .class , () -> new Image (display , 0 , 10 ));
108108 assertSWTProblem ("Incorrect exception thrown for width == 0" , SWT .ERROR_INVALID_ARGUMENT , e2 );
109109
110- IllegalArgumentException e3 = assertThrows (IllegalArgumentException .class , () -> new Image (display , ( gc , width , height ) -> {}, 10 , -20 ));
110+ IllegalArgumentException e3 = assertThrows (IllegalArgumentException .class , () -> new Image (display , 10 , -20 ));
111111 assertSWTProblem ("Incorrect exception thrown for height < 0" , SWT .ERROR_INVALID_ARGUMENT , e3 );
112112
113- IllegalArgumentException e4 = assertThrows (IllegalArgumentException .class , () -> new Image (display , ( gc , width , height ) -> {}, 10 , 0 ));
113+ IllegalArgumentException e4 = assertThrows (IllegalArgumentException .class , () -> new Image (display , 10 , 0 ));
114114 assertSWTProblem ("Incorrect exception thrown for height == 0" , SWT .ERROR_INVALID_ARGUMENT , e4 );
115115
116- Image image = new Image (null , ( gc , width , height ) -> {}, 10 , 10 );
116+ Image image = new Image (null , 10 , 10 );
117117 image .dispose ();
118118
119- image = new Image (display , ( gc , width , height ) -> {}, 10 , 10 );
119+ image = new Image (display , 10 , 10 );
120120 image .dispose ();
121121}
122122
@@ -563,12 +563,12 @@ public void test_getBounds() {
563563
564564 Image image ;
565565 // creates bitmap image
566- image = new Image (display , bounds .width , bounds .height );
566+ image = new Image (display , ( gc , width , height ) -> {}, bounds .width , bounds .height );
567567 Rectangle bounds1 = image .getBounds ();
568568 image .dispose ();
569569 assertEquals (bounds , bounds1 );
570570
571- image = new Image (display , bounds .width , bounds .height );
571+ image = new Image (display , ( gc , width , height ) -> {}, bounds .width , bounds .height );
572572 bounds1 = image .getBounds ();
573573 image .dispose ();
574574 assertEquals (bounds , bounds1 );
0 commit comments