|
May 2003
[
vmassol
]
16:09, Friday, 30 May 2003
I have just rewritten the Checkstyle plugin for Maven (version is now 2.0) so that it supports the excellent Checkstyle 3.1 tool. The new plugin is currently located in Maven CVS and you need to build Maven from its sources to use it. In other words, it has not been released yet. Note this new checkstyle plugin for Maven has only been tested with Maven 1.0 beta 10 and is not expected to work with other versions (but it may...)
[
vmassol
]
10:16, Tuesday, 27 May 2003
I'm pleased to announce the new book I am writing with Ted Husted: JUnit In Action. Here's the book description:
The book will soon be part of the Manning Early-Access Program, which will allow subscribers to get access to all the book chapters as they are ready without having to wait for the book final publication.
[
vmassol
]
22:31, Friday, 23 May 2003
I have just committed a full rewrite of the Maven Cactus Plugin. As it is a rewrite, I have increased the version to 3.0 (it was 2.1-SNAPSHOT before). Note that the 3.0 version is still in development and is not released yet. I'm waiting for more feedback before releasing it. The new version of the Cactus plugin now relies on the newest Cactus/Ant integration which has completely changed since version 2.0 of the Maven plugin. Thanks to the new Cactus/Ant, some features have also been added. The plugin now uses the new Note that version 2.1-SNAPSHOT will never get released as 1/ a bug had been introduced and 2/ the direction is to use the Cactus/Ant integration which has been changed in Cactus CVS. Please give it a try and report any issue on the Maven mailing lists/JIRA. You can find a read-made test application in here if you wish.
[
vmassol
]
11:05, Saturday, 17 May 2003
Having project documentation written in XML (xdocs) and stored in the project's CVS is great as it allows changing the style without chasnging the content. It also allows to easily write directly the docs in XML format That said, lots of persons do find that writing xdocs is a pain. Moreover wouldn't it be nice if end users could easily contribute to the documentation? Here's a solution:
Nice, no?
[
vmassol
]
09:30, Saturday, 17 May 2003
NMock v1.0 has been released yesterday by Joe Walnes. It is a dynamic mock object library for .NET. On a related note, I've released version 0.09 of the MockObjects.com framework yesterday too. This release contains several improvements in provided Mock Objects but little modifications to the core, apart from the introduction of a new library: the Dynamic Mock API (or DynaMock for short). It is based on dynamic proxies (same as EasyMock but I think with a more powerful and cleaner syntax), which means the mocks are created at runtime. Warning: This first cut of the DynaMock API is not stable at all. Actually, a big refactoring has happened in the MockObjects CVS and a better API has been developed (very similar but which fixes the quircks from the first cut). Thus, if you use this DynaMok API, be prepared to refactor your applications when version 0.10 is out! Here is a short example using DynaMock 0.09: [...]
import com.mockobjects.constraint.Constraint;
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
public class TestAdminServlet extends TestCase
{
private Mock mockRequest;
private Mock mockResponse;
private HttpServletRequest request;
private HttpServletResponse response;
private AdminServlet servlet;
public void setUp()
{
servlet = new AdminServlet();
mockRequest = new Mock(HttpServletRequest.class);
request = (HttpServletRequest) mockRequest.proxy();
mockResponse = new Mock(HttpServletResponse.class);
response = (HttpServletResponse) mockResponse.proxy();
}
public void tearDown()
{
mockRequest.verify();
mockResponse.verify();
}
public void testDoGet() throws Exception
{
mockRequest.expectAndReturn("getParameter", "command",
"SELECT...");
// Verify that the result of executing the command has been
// stored in the HTTP request as an attribute that will be
// passed to the JSP page.
mockRequest.expect("setAttribute", C.args(C.eq("result"),
C.isA(Collection.class)));
servlet.doGet(request, response);
}
}
Update: Thanks to Chris Lenz, fixed the testDoGet() method and removed not needed asserts
[
vmassol
]
13:06, Thursday, 15 May 2003
I've just added a RSS feed for Jakarta Cactus news. It is available at http://jakarta.apache.org/cactus/news.rdf. The update process is quite nice too: we change the RDF file in CVS. Then every night Gump builds the Cactus project documentation (we transform the RDF file to HTML using XSLT in this process) and if the build is successful, upload it to http://jakarta.apache.org/cactus. Thus we get automated updates from CVS to your RSS feed reader!
[
vmassol
]
09:13, Tuesday, 13 May 2003
Scott Stirling has posted a nice followup of the initial StarTeam woes I posted some time ago.
[
vmassol
]
11:24, Monday, 12 May 2003
I knew I was missing something! For some time I've had this feeling that everyone was enjoying some way of getting interesting news that I wasn't aware of... Now I know it was true... :-) I've, at last, discovered the joy of RSS syndication. This is a revolution for me. I was used to opening my browser every morning and scanning my favorite sites... No longer. I'm now using FeedReader, a very nice windows application that automatically polls your favorite RSS feeds and displays them in a nice manner. The other nice features are
To get you started, here is my list of subscriptions (FeedReader format). Drop this file in your Update:: I've just discovered that there are some other very nice RSS feed readers (I haven't tried them yet though): Syndirella and SharpReader. Update:: Thanks to Scott Stirtling for the best RSS Feed Reader / News Aggregators Directory he's seen.
[
vmassol
]
23:07, Monday, 5 May 2003
This morning I've started reading about Subversion. I am very excited and have a few reservations. On the positive side:
On the negative side, it is still missing the following to be perfect:
[
vmassol
]
23:06, Monday, 5 May 2003
I have been working on a new project with the StarTeam SCM. Here are the drawbacks I have found when using Starteam vs CVS/Subversion:
|