You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2013/09/16 10:37:39 UTC

[Hadoop Wiki] Trivial Update of "HowToDevelopUnitTests" by SteveLoughran

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "HowToDevelopUnitTests" page has been changed by SteveLoughran:
https://wiki.apache.org/hadoop/HowToDevelopUnitTests?action=diff&rev1=10&rev2=11

Comment:
inc junit version

  
  === Cheat sheet of tests development for JUnit v4 ===
  
- Hadoop has been using JUnit4 for a while now, however it seems that many new tests are still being developed for JUnit v3. It is partially JUnit's fault because for the false sense of backward compatibility all v3 {{{junit.framework}}} classes are packaged along with v4 classes and it all is called {{{junit-4.5.jar}}}. This is necessary to permit mixing of the old and new tests, and to allow the new v4 tests to run under the existing JUnit test runners in IDEs and build tools.
+ Hadoop has been using JUnit4 for a while now, however it seems that many new tests are still being developed for JUnit v3. It is partially JUnit's fault because for the false sense of backward compatibility all v3 {{{junit.framework}}} classes are packaged along with v4 classes and it all is called {{{junit-4.10.jar}}}. This is necessary to permit mixing of the old and new tests, and to allow the new v4 tests to run under the existing JUnit test runners in IDEs and build tools.
  
  Here's the short list of traps one need to be aware and not to develop yet another JUnit v3 test case