• Share this article:

My first screen cam

Thursday, March 30, 2006 - 14:50 by Wayne Beaton

I’ve created my first screen cam demonstration of Eclipse. It’s all so very exciting for me. Can you feel the excitement?

This demo shows how you can use Eclipse together with JUnit to do top down development of Java code using a test first philosophy. Along the way, I make heavy use of code assist (ctrl-space) and quick fix (ctrl-1).

One of the key messages of the demo is that you shouldn’t be afraid of the little red Xs and lines in and around your code (indicating errors). As you develop from the top down, you’re going to make a lot of those little red Xs along the way. I tend to think of them as markers telling me what I need to do next.

One of the cooler (IMHO) features of Eclipse that is demonstrated in this screen cam is the ability to run code that contains compile errors. At one point in demo, I actually run the test code despite the fact that there is a compile error in the test class. Everything runs right up to the point where it tries to run the the method containing the compile error; at that point, it throws an exception indicating the error and moves on. In the case of a JUnit test class, it would just move on to the next test method. Try that with javac!

I doubt very much that any of you truly seasoned folks will get any real value from this. It’s really intended for people who are new to Eclipse. For those folks, enjoy!