Testing SWT-Projects with JUnit [message #440105] |
Thu, 22 July 2004 10:36 |
Ole Laurisch 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
|
|
|
Powered by
FUDForum. Page generated in 0.03308 seconds