Handler and Integration Test [message #568080] |
Fri, 21 August 2009 04:43 |
Eclipse User |
|
|
|
Hi,
First Thanks for reading this post.
I created an Handler class which deletes model elements from my tree
navigator. It semms to work well. Now I'm trying to write an integration
test for my Handler class. Therefore I used JUnit. I have basic knowledge
in JUnit but i never tested a Handler before. Wenn I start my test, i will
get a lot of NullPointExceptions.
For example that method in the class EMFTransactionPlugin causes an
Exception because getPlugin() returns null.
public static String getPluginId() {
return getPlugin().getBundle().getSymbolicName();
}
It is easy to understand because the whole UI interaction is missing in my
test.
Now my question.
How can I create an integration test for handlers unsing Junit? Can
somebody please help me, maybe there is a tutorial?
Thank you very much!
RCH
|
|
|
Powered by
FUDForum. Page generated in 0.03542 seconds