Test cases nightmare
Test cases nightmare - al salamo alikom wa rahmat allah wa barakatoh
Today was the first time for me to write real test cases, and really it wasn’t a GOOD experiment…
I discovered today that writing Test cases may be harder than developing the feature that needs to be tested.
The most thing that was a real headache for me during writing [...] [Mahmoud Rabie Blog]
I am not quite sure what the author means by test case. If he means
the one for unit testing, then, you should isolate the unit under test and test
it in isolation. You can inject stubs or mock the surrounding objects to your
unit under test.
There are some few useful tools for that easymock, jmock ,
.... what about using aspect oriented programming to mocking? Good idea huh?!
In some real situation, you may not need to isolate your
database and you typically need to hit the database and do some CRUD on it.
Although this is not meant to be unit testing,
you can use something like DBUnit to handle and manage this.
- Kestrel's blog
- Login or register to post comments





