I recently attended a three-day training workshop for OptimalJ (the Architect Edition). OptimalJ promises to provide a complete MDA solution, and this was my first opportunity to get some hands-on experience and impressions of this tool.
The proper way to start OC4J is sparsely documented by Oracle: To start OC4J in a standalone environment, issue the following command from the j2ee/home/ directory: java -jar oc4j.jar options This may often be adequate for development or test purposes, but it never is in a production environment.
As a first recap of my five days at Javapolis, here are my thoughts on trends, past, present and future of the Java platform. Expect to see more in-depth articles soon.
From last week’s JFall conference I picked four of the most interesting sessions I visited to report on:
- Combining the Power of MDA and OCL: Generating Java Code from OCL (and UML) Models – Jos Warmer
- Scripting in Java – Martin Wolf
- Project Jackpot: Refactoring on Steroids – Wilfred Springer
- XP Game – Martien van Steenbergen
Mockobjects are the classic solution to the even more classic problem of how to test code in isolation, when that code needs other objects to perform its tasks. The problem is we want to test classes individually, without introducing too many other objects that may make our tests too complex.
In this article I hope to wet your appetite for this technique. First I will illustrate the problem with a simple example. Then I will demonstrate a solution, using EasyMock to create mockobjects with minimal coding effort.
When you’re in need for a tool or a framework, often it turns out that a solution exists already and is just one download away as an open source software product. A good startingpoint is the Java OS software catalog at http://java-source.net. They have listings per category, each showing the […]