Checking out JUnit 4 from the Source

During a meeting of senior developers where we kick around general development issues like whether to use Spring MVC or JSF going forward, a question came up from one of the developers about JUnit 4 and when it was supposed to be released. The motivation for this was he wanted to try using TestNG now.

A little light bulb went off in my head on the way to my oncologist’s appointment about an hour later. Maybe I can checkout the source to JUnit 4. After hunting through the Yahoo group for JUnit, I discovered a post that mentioned just getting the source for the JUnit 4 version on Sourceforge. Sadly enough I admit, I’ve never pulled down the CVS source before on Sourceforge. I actually never noticed the little CVS link in the projects. So with a little trial and error on the old command line below I got things checked out after a bit of fiddling:

1
cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/junit login
1
Logging in to :pserver:anonymous@cvs.sf.net:2401/cvsroot/junit
1
CVS password:

Just hit return here. I mistakenly tried a really old FTP habit of mine and stuck in an email address

1
junk@junk.net

. Of course it really needs a blank password so just hit return.

1
2
3
cvs login: CVSROOT may only specify a positive, non-zero, integer port (not `2401:').

cvs login: Perhaps you entered a relative pathname?

cvs login: warning: skipping invalid entry in password file at line 6

Not real sure why I got this message, something to do with some junk in my .cvspass file I’m sure. Anyway for a minute I throught it was failing but then I ran the next command and realized I was logged in to sourceforge.

1
cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/junit checkout -r Version4 junit

Success at last! I’ll check out JUnit 4 a bit tomorrow. This of course tweaks my interest to go ahead and pull down 0.6.3 of XPlanner from the Sourceforge as well, though after 0.6.1 and 0.6.2 failed me this is probably futile.