Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

JavaOne 2013 – 10 things you should know when writing Good Unit Test Cases in Java

25 sec read

netbeans_javaone_2013_icon125Today was the first day of JavaOne 2013 and it was jammed packed full of sessions. The best one I went to gave these 10 clear ideas to write good tests.

1. Think before you act (ie planning!)

2. Make your tests understandable.

3. Keep your tests small and simple.

4. Test one thing only.

5. Fast tests only.

6. Absolute repeatability.

7. Independent tests only.

8. Provide diagnostic output on failure.

9. No hard coding your environment.

10. No extraneous output.

Tomorrow is another full day at JavaOne. What was your favourite Monday talk?

If you want more information on JavaOne 2013 and further coverage of the entire event check out our JavaOne 2013 Series Index, which covers everything that is happening and is constantly updated, keep checking back for new info!

 

IDRsolutions develop a Java PDF Viewer and SDK, an Adobe forms to HTML5 forms converter, a PDF to HTML5 converter and a Java ImageIO replacement. On the blog our team post anything interesting they learn about.

Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

4 Replies to “JavaOne 2013 – 10 things you should know when…”

  1. Hi Mark,

    I will soon publish a book about antipatterns and good practices of testing (named ‘Bad Tests, Good Tests’). Stay tuned and follow me to learn about the details.

    Cheers!

  2. Hi, thanks for your interest in the BOF that Paul Thwaite and I did at JavaOne this year. [1] I’m glad it was the best thing you saw that day! The ten points came from Paul. He’s posted his slides here [2]. There’s actually a lot more information in the discussion between Paul and me on stage and with the audience. I’m not sure if the session was recorded, though.

    Again, thanks for your interest!

    [1] https://oracleus.activeevents.com/2013/connect/sessionDetail.ww?SESSION_ID=4255

    [2] http://www.slideshare.net/PaulThwaite/ten-things-you-should-know-when-writing-good-unit-test-cases-in-java-java-one-2013

Leave a Reply

Your email address will not be published. Required fields are marked *

IDRsolutions Ltd 2019. All rights reserved.