DateChooserCombo unit testing problem [message #61441] |
Tue, 30 December 2008 10:40  |
Eclipse User |
|
|
|
Hi,
The following code in DateChooserCombo breaks unit testing:
static {
buttonImage = new Image(Display.getCurrent(),
DateChooserCombo.class.getResourceAsStream(IMAGE));
}
I reset it in my TestCase.setUp() method by using reflection as a work
around. But in my opinion setImage(Image) should recreate the image if
image.getDevice().isDisposed() == true.
Is it a known/fixed issue or I should post a bug?
Regards,
Jacek
|
|
|
Re: DateChooserCombo unit testing problem [message #61464 is a reply to message #61441] |
Tue, 30 December 2008 11:37  |
Eclipse User |
|
|
|
Jacek Kolodziejczyk wrote:
> Hi,
>
> The following code in DateChooserCombo breaks unit testing:
>
> static {
> buttonImage = new Image(Display.getCurrent(),
> DateChooserCombo.class.getResourceAsStream(IMAGE));
> }
>
> I reset it in my TestCase.setUp() method by using reflection as a work
> around. But in my opinion setImage(Image) should recreate the image if
> image.getDevice().isDisposed() == true.
>
> Is it a known/fixed issue or I should post a bug?
I would file a bug against Nebula.
Cheers,
~ Chris
|
|
|
Re: DateChooserCombo unit testing problem [message #593071 is a reply to message #61441] |
Tue, 30 December 2008 11:37  |
Eclipse User |
|
|
|
Jacek Kolodziejczyk wrote:
> Hi,
>
> The following code in DateChooserCombo breaks unit testing:
>
> static {
> buttonImage = new Image(Display.getCurrent(),
> DateChooserCombo.class.getResourceAsStream(IMAGE));
> }
>
> I reset it in my TestCase.setUp() method by using reflection as a work
> around. But in my opinion setImage(Image) should recreate the image if
> image.getDevice().isDisposed() == true.
>
> Is it a known/fixed issue or I should post a bug?
I would file a bug against Nebula.
Cheers,
~ Chris
|
|
|
Powered by
FUDForum. Page generated in 0.03922 seconds