Category Archives: java

Create hidden files in Apache VFS with the RAM filesystem type

Apache VFS is a great way to access different file systems in the same way. I particularly like the custom RAM filesystem in my unit tests in order to check code that eventually accesses the actual file system. For example: … Continue reading

Posted in java, test | Leave a comment

Cleaning up test code

My former colleague David just posted an example of verbose test code on his blog (the parts in French have been translated to English by myself): /** * */ @Test public void testGetCustomerOK() { LOGGER.info(“======= testGetCustomerOK starting…”); try { CustomerDTO … Continue reading

Posted in java | 3 Comments

More data on productivity of small teams

“Adding manpower to a late software project makes it later”. The so-called Brooks’s Law on productivity of software project is well known, since Fred Brooks’ seminal work The Mythical Man-Month, first published in 1975. That is one of the reasons … Continue reading

Posted in java | 3 Comments

Worse than static methods or final classes?

Do you know what’s worse that static methods or classes marked as final? I’ll tell you what’s worse: static methods that return final classes. That only provides private constructors. Here I was, merrily testing my way through a piece of … Continue reading

Posted in java, tdd | 3 Comments

I avoid method variables in my test methods

Here is a typical example of a test method @Test public void should_search_by_path() { Searcher searcher = new Searcher(); Path location = new Path(“somewhere”); String data = “data”; searcher.putAt(data, location); assertThat(searcher.findAt(location), is(data)); } It seems that many developers consider this … Continue reading

Posted in java | 5 Comments

Java’s varargs are for unit tests

At Devoxx last week, Joshua Bloch argued during his talk “The Evolution of Java: Past, Present, and Future” that varargs are only “somewhat useful”. I think he is overlooking some usages, particularly in tests. Here is my case. A reminder … Continue reading

Posted in conferences, java, tdd | 2 Comments

Play Framework and Guice: use providers in Guice modules

Play Framework has a Guice module. Unfortunately, its use is fairly limited compared to what Guice can do. In this post, I describe how it is configured on my current personal project. In general, when I test classes that have … Continue reading

Posted in java, test | Tagged , , | 1 Comment

CITCON London 2010

I’m returning from CITCON London 2010. What a great conference (and I’m not just saying that just because I helped organize it)! In fact, I feel it has been the best CITCON so far. I was a bit afraid of … Continue reading

Posted in citcon, java | Leave a comment

Mock objects at CITCON Paris 2009

The session on mock objects, mostly lead by Steve Freeman, was a bit messy but interesting. My colleague David got to show some of our code on the screen, which was scary and exciting (he felt the urge to fix some of the … Continue reading

Posted in citcon, java | 5 Comments

[Agile 2009] What’s in the conference for Java developers?

Agile 2009 is not just for Agile coaches or project managers. About one in three participants qualify herself as a developer or a technical leader. And the program reflects that. Amongst the activities that might interest fans of the Java: … Continue reading

Posted in agile2009, java | Leave a comment

Maven: it ain’t too bad

(or Maven Doesn’t Suck™) My colleague David recently wrote a controversial post on Maven and what is wrong with it. As his neighbour in a cramped office room, I feel compelled to give my own opinion about it. Which fits … Continue reading

Posted in maven | 2 Comments

RIA Frameworks: the never-ending story (JavaCampParis4)

A few weeks ago saw an excellent evening at Google’s: JavaCampParis4. Quite a few people showed up, maybe partly out of curiosity for the famed Google offices (around 60 people in total, much more than previous editions). Google obliged by providing a … Continue reading

Posted in java | 3 Comments

Paris JUG One Year Anniversary

A fun evening last Tuesday at the Paris Java User Group. It was the first year anniversary, so special events were planned. The highlight was the introduction of ALL French JUGs (all created shortly after Paris JUG was). More than … Continue reading

Posted in conferences, java | Leave a comment

JavaCampParis3 is on!

I am very excited to let you know that my colleague Anthony and I are organizing a BarCamp related to Java programming and everything that goes around it. Quite a few people have registered already. A lot of the topics … Continue reading

Posted in conferences, java | Leave a comment

Back from Open Source eXchange

Interesting day at Open Source eXchange, a conference organized by Xebia and SkillsMatter. It was fun meeting Wendy Devolder (now CEO of SkillsMatter) formerly from Valtech (I worked with her at Valtech London back in 2001-2002) and Michael Isvy (with … Continue reading

Posted in conferences, groovy, java, spring | 1 Comment