Interview question dilemna
Hi Friends,
I am a java developer and i have been coding java for 2 years now.I have a interview coming up tommorow and they require JUNIT testing.
But so far in my career,I have never used JUnit test cases,so they would ask what do I use for testing my code?
But,I just write code and I have loggers enabled,and try to trouble-shoot the problem viewing the logs.So,is there a name for this strategy?
Is this called "developers test"..
Do all of you who are developers,use automated test frameworks like JUnit to test your code or what do you use?
Please help....
Thanks
[619 byte] By [
java80a] at [2007-11-26 18:30:45]

There's a whole philosophy that goes with this. It says that you should write the JUnit test before you write the code, and if you can't write the JUnit test because you don't know what the code should do, that's also a very good sign that you shouldn't write the code either yet.
It also acts as a deterrent to writing code that isn't actually required.
ejpa at 2007-7-9 6:04:53 >

Thanks ejp, but in most cases i think,Extreme Programming methodology comes into use,there are tight deadlines,and the coders like me try to complete the work,taking some shortcut routes....
So,I just want to know,that do all of you guys who are big developers write JUnit testcases before writing the code. If not,how do you test your code and what's that methodology called?
Your help would be appreciated.