An Early Look at JUnit 4
An anonymous reader writes "Elliotte Harold, proclaimed 'obsessive code tester', took an early look at JUnit4 and shows how to best utilize the framework in your own projects. Many feel that this is one of the most important third-party Java libraries ever developed. It promises to simplify testing by exploiting Java 5's annotation feature to identify tests rather than relying on subclassing, reflection, and naming conventions."
Maybe I am the only one that understands this too... J-J-J... J UNIT!
...with JUnit 3, they have to go and improve it. I'll be eating my heart out for a while, because my company will surely not go to Java 5 before Java 6 is out, so these mentioned features will not be available to me. And when they are, I'll have to change my modus operandi.
Actually: Nice work, guys. I'll probably appreciate this once I get a chance to use it and wrap my head around it.
When one person suffers from a delusion, it is called insanity. When many people suffer from a delusion it is called Rel
Just kidding, JUnit, one with capital U.
You must be that famous rapper's computer-geek brother, 50 GHz...
To recap in manager-speak, you're saying the utilization of utilize nets suboptimal perceptual leadership utility?
Envy me, I'm programming's MVP!
Hollow words will burn and hollow men will burn.
The system I am looking for would use microphones to record all the conversations regarding requirements, resolve them into structured documents, then generate unit tests for all the requirements.
It would have to use microphones because, in my experience, you don't get a written requirements spec. Or if you do, customers don't feel constrained by it.
It would also have to raise a red flag when the customer contradicts themselves in the same sentence or paragraph.
But all kidding aside, JUnit is cool.
For intricate portions of my code I write tests that represent specific scenarios and run regression tests whenever I have finished implementing the new rule of the day.
"We can't solve problems by using the same kind of thinking we used when we created them." -- Albert Einstein
I say the holy grail is combining unit testing with genetic algorithms.
Then you just write the tests and let the code "evolve" until it passes them. Meanwhile, you get to sit around and drink beer.
----- If communism is a system where the government owns business, what do you call a system where business owns govern