Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » DateChooserCombo unit testing problem
DateChooserCombo unit testing problem [message #61441] Tue, 30 December 2008 15:40 Go to next message
Jacek Kolodziejczyk is currently offline Jacek KolodziejczykFriend
Messages: 37
Registered: July 2009
Member
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 16:37 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
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 16:37 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
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
Previous Topic:DateChooserCombo unit testing problem
Next Topic:Nebula Grid + Glazed Lists
Goto Forum:
  


Current Time: Thu Apr 25 13:12:23 GMT 2024

Powered by FUDForum. Page generated in 0.02919 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top