@@ -100,22 +100,22 @@ public void setUp() {
100100
101101@ Test
102102public void test_ConstructorLorg_eclipse_swt_graphics_DeviceII () {
103- IllegalArgumentException e1 = assertThrows (IllegalArgumentException .class , () -> new Image (display , ( gc , width , height ) -> {}, -1 , 10 ));
103+ IllegalArgumentException e1 = assertThrows (IllegalArgumentException .class , () -> new Image (display , -1 , 10 ));
104104 assertSWTProblem ("Incorrect exception thrown for width < 0" , SWT .ERROR_INVALID_ARGUMENT , e1 );
105105
106- IllegalArgumentException e2 = assertThrows (IllegalArgumentException .class , () -> new Image (display , ( gc , width , height ) -> {}, 0 , 10 ));
106+ IllegalArgumentException e2 = assertThrows (IllegalArgumentException .class , () -> new Image (display , 0 , 10 ));
107107 assertSWTProblem ("Incorrect exception thrown for width == 0" , SWT .ERROR_INVALID_ARGUMENT , e2 );
108108
109- IllegalArgumentException e3 = assertThrows (IllegalArgumentException .class , () -> new Image (display , ( gc , width , height ) -> {}, 10 , -20 ));
109+ IllegalArgumentException e3 = assertThrows (IllegalArgumentException .class , () -> new Image (display , 10 , -20 ));
110110 assertSWTProblem ("Incorrect exception thrown for height < 0" , SWT .ERROR_INVALID_ARGUMENT , e3 );
111111
112- IllegalArgumentException e4 = assertThrows (IllegalArgumentException .class , () -> new Image (display , ( gc , width , height ) -> {}, 10 , 0 ));
112+ IllegalArgumentException e4 = assertThrows (IllegalArgumentException .class , () -> new Image (display , 10 , 0 ));
113113 assertSWTProblem ("Incorrect exception thrown for height == 0" , SWT .ERROR_INVALID_ARGUMENT , e4 );
114114
115- Image image = new Image (null , ( gc , width , height ) -> {}, 10 , 10 );
115+ Image image = new Image (null , 10 , 10 );
116116 image .dispose ();
117117
118- image = new Image (display , ( gc , width , height ) -> {}, 10 , 10 );
118+ image = new Image (display , 10 , 10 );
119119 image .dispose ();
120120}
121121
@@ -545,12 +545,12 @@ public void test_getBounds() {
545545
546546 Image image ;
547547 // creates bitmap image
548- image = new Image (display , bounds .width , bounds .height );
548+ image = new Image (display , ( gc , width , height ) -> {}, bounds .width , bounds .height );
549549 Rectangle bounds1 = image .getBounds ();
550550 image .dispose ();
551551 assertEquals (bounds , bounds1 );
552552
553- image = new Image (display , bounds .width , bounds .height );
553+ image = new Image (display , ( gc , width , height ) -> {}, bounds .width , bounds .height );
554554 bounds1 = image .getBounds ();
555555 image .dispose ();
556556 assertEquals (bounds , bounds1 );
0 commit comments