I have a rather basic question regarding junit/eclipse.
When I run the following class as a junittest in eclipse, it works ok
But when I have a setup method, like:
I get exception:
You have any ideas?
(EDIT: edited the post to use UBB code tags) [ January 24, 2006: Message edited by: Lasse Koskela ]
posted 10 years ago
You have to use setUp() not setup() as the method name. With your current name, the test runner code isn't calling the test fixture initialization code and therefore you get the null pointer exception.