Last updated : 05/09/2002; 08:02:42

Joe's Jelly

Joe Walnes rambling on and on about Software Development, Java and Extreme Programming.

NAVIGATION >>

/WIKI /WEBLOG /THOUGHTWORKS /OPENSYMPHONY /EMAIL

:: ELSEWHERE
xp developer wiki
c2 xp wiki
the server side
javaworld
sd magazine
jakarta

:: BLOGS
Mike Cannon-Brookes
Graham Glass
Paul Hammant
Elliotte Rusty Harold
Darren Hobbs
Patrick Lightbody
Charles Miller
Brett Morgan
Rickard Öberg
Mike Roberts
Sam Ruby
Joel Spolsky
James Strachan
Clemens Vasters
:: BACKLOGS
August 2002
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Jul   Sep



Click here to visit the Radio UserLand website.

:. 18 August 2002

  10:24:16 PM  

Mike Roberts is blogging.... pah.. and the first thing he does is shoot me down :)


  8:16:45 PM  

Quick Tip: Keeping unit tests in parallel source trees

It's common practise to bundle unit-tests in the same source tree as production code. To distinguish between test code and production code, tests are placed in a subpackage called test.

src/com/blah/thing/Cheese.java
src/com/blah/thing/Thing.java
src/com/blah/thing/test/CheeseTest.java
src/com/blah/thing/test/ThingTest.java
src/com/blah/another/Cow.java
src/com/blah/another/test/CowTest.java

However, if tests are kept in parallel source trees and the test subpackage is ditched, it gives some useful advantages:

  • Because the test cases now reside in the same package, members with package protection can be accessed from the tests. This is an easy compromise for testing the internals of classes without making their members public.
  • Production code can be compiled easily in isolation from the test code, ensuring there no unwanted dependencies.
  • It's easy to generate things like API documentation and release packages without including tests.
src/java/com/blah/thing/Cheese.java
src/java/com/blah/thing/Thing.java
src/java/com/blah/another/Cow.java
src/test/com/blah/thing/CheeseTest.java
src/test/com/blah/thing/ThingTest.java
src/test/com/blah/another/CowTest.java


  7:51:52 PM  

Bruce Eckel is working on Thinking in C#. I really got a lot from reading Thinking in Java when I was learning Java and people said similar things about Thinking in C++. This could be an important book for developers making the leap from classic MS to .NET.


  12:01:02 AM  

Apache Announces Avalon-Phoenix 4.0 Beta

Phoenix is a server of servers. Phoenix is a micro kernel for Java components. Phoenix is 'Avalon Container Enterprise Edition'. Phoenix is not an EJB server. Phoenix does not provide RPC capability out of the box, thus is not a replacement for an EJB server. Phoenix mounts applications distributed in SAR format (like EAR in a way). Phoenix has a JMX management application (MX4J) via port 8082. Phoenix likes components that implement all, some or none of the interfaces from the Avalon-Framework project.

[The Server Side]

6 months ago I mocked Phoenix. Having seen it in action I take it all back... hurry up and release final!


Web-design by John Doe from open source web design.