Slashdot Mirror


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."

9 of 147 comments (clear)

  1. I don't know if I am the only one thinking this... by TheOtherAgentM · · Score: 5, Funny

    Maybe I am the only one that understands this too... J-J-J... J UNIT!

  2. Just when I'd almost gotten comfortable by Elrac · · Score: 2, Funny

    ...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
  3. JUnit4 ? Goddess ? by karvind · · Score: 2, Funny
    But wikipedia says Junit was a minor goddess.

    Just kidding, JUnit, one with capital U.

  4. Re:I don't know if I am the only one thinking this by Anonymous Coward · · Score: 1, Funny

    You must be that famous rapper's computer-geek brother, 50 GHz...

  5. Re:Could we cut down at manager speak here by iggymanz · · Score: 3, Funny

    To recap in manager-speak, you're saying the utilization of utilize nets suboptimal perceptual leadership utility?

  6. Your not the only one by sideshow · · Score: 3, Funny
    Maybe I am the only one that understands this too... J-J-J... J UNIT!


    Envy me, I'm programming's MVP!

    --

    Hollow words will burn and hollow men will burn.

    1. Re:Your not the only one by meadowsp · · Score: 2, Funny

      MVC surely?

  7. Re:The Holy Grail by KenSeymour · · Score: 3, Funny

    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
  8. Re:The Holy Grail by willCode4Beer.com · · Score: 4, Funny

    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