• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

junit versions

 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just finished reading the 'junit in action' book.

I am about to do the handson on that book.

The book uses junit 3.8.1.

As of now there are already 3.8.2, 4.1 and 4.2.

Am I wasting my time studying 3.8.1? Are the other versions very different? Or are they compatible?

Any comments appreciated.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jesus,
The concepts of testing are the same - the syntax is different. If you will be working with Java 1.4, use JUnit 3.8. If you are going straight to Java 5, use JUnit 4.0.

3.8.2 is extremely similar to 3.8.1. The 4.X versions use annotations and introduce some new concepts.
 
Jesus Angeles
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jeanne Boyarsky:
Jesus,
The concepts of testing are the same - the syntax is different. If you will be working with Java 1.4, use JUnit 3.8. If you are going straight to Java 5, use JUnit 4.0.

3.8.2 is extremely similar to 3.8.1. The 4.X versions use annotations and introduce some new concepts.



Thanks. Do you know any book or tutorial on the latest junit version?

My current focus is its usage inside WSAD/RAD6/7.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jesus Angeles:
Thanks. Do you know any book or tutorial on the latest junit version?


My upcoming book (on test-driven development) from Manning Publications will be using JUnit 4.x in all of its examples. While its goals do not include teaching JUnit 4, I'm afraid none of the other books currently on the market feature JUnit 4 code. It would be nice to have books such as JUnit Recipes, JUnit in Action and Pragmatic Unit Testing in Java with JUnit updated for the latest and greatest library/tool versions...

However,

Originally posted by Jesus Angeles:
My current focus is its usage inside WSAD/RAD6/7.


The usage inside Eclipse-based IDEs hasn't changed. There's still the same UI for running JUnit tests, whether they're written against the 3.8.x or the 4.x version of the library.
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jesus Angeles:
My current focus is its usage inside WSAD/RAD6/7.


Note that WSAD and RAD 6 support Java 1.4, so you would have to use JUnit 3.8 for code that can be deployed to a WebSphere server. RAD 7 does support Java 5, so that is the first version of the IDE offering this choice for JUnit.
 
Jesus Angeles
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lasse, Jeanne, Thanks for the replies.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic