Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Testing SWT-Projects with JUnit
Testing SWT-Projects with JUnit [message #440105] Thu, 22 July 2004 10:36
Ole Laurisch is currently offline Ole LaurischFriend
Messages: 34
Registered: July 2009
Member
Hello everybody,

yesterday we mentioned a strange problem. Maybe somebody knows a little more
about it.

I have a SWT project for which I would like to write some JUnit tests. The
tests are not for the GUI, but for some methods that can be tested without
really starting the GUI and clicking buttons and so on.

The classes in the SWT project need some EJBs which contain the data and the
business logic. When we start the JUnit test with an text-based testrunner
everything works fine and all tests run without errors. But when we use the
swing-base testrunner, we get a ClassCastException. The astonishing thing is
that the ClassCastException occurs when we try to cast our BeanHome stub to
EJBHome which works fine without swing-base testrunner.

Do you have any idea, why swing-based testrunner and SWT projects don't work
together and moreover why the problem occurs while casting a BeanHome??

Any hints would be greatly appreciated!

Ole Laurisch
Previous Topic:Combo tooltips
Next Topic:MessageDialog
Goto Forum:
  


Current Time: Fri Apr 26 12:05:14 GMT 2024

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

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

Back to the top