Basic Spring configuration test using Beanoh

Written by Mike van Vendeloo on February 4, 2012 – 07:48

When using Spring con­texts, it is easy to mis­con­fig­ure. Espe­cially when mix­ing XML and anno­ta­tion con­fig­u­ra­tions. So we all (should) include a unit test that ensures that at least the Spring con­fig­u­ra­tion is OK, before we go and test the func­tion­al­ity itself. I thought that there must be a more generic way of doing this and came across the Beanoh library.

Read more »

Tags: , ,
Posted under Java, Spring Framework | 3 Comments »

Boosting local performance with Vaadin using Jetty 7 / 8

Written by Mike van Vendeloo on February 3, 2012 – 16:41

When your are gen­er­at­ing a new Vaadin project using one of the sup­plied arche­types, it comes with a jetty plu­gin con­fig­u­ra­tion which allows you to quickly run the appli­ca­tion using mvn pack­age jetty:run. Nice, but then often you have to wait, since Jetty 6 some­how takes very long to use the Vaadin Wid­get­set.
Want to speed things up, use the new Jetty 7 maven plu­gin and you will notice the dif­fer­ence!
Read more »

Tags: , ,
Posted under Java, Maven, Vaadin | 1 Comment »

SLF4J?">Logging, which framework to choose? Log4J, Commons Logging, LogBack, SLF4J?

Written by Mike van Vendeloo on May 6, 2011 – 17:24

Log­ging is part of every appli­ca­tion we cre­ate and most of the time we do not use java’s own Java Util Log­ging frame­work. Most devel­op­ers and archi­tects use Jakarta Com­mons Log­ging (JCL) in com­bi­na­tion with Log4J. But what about SLF4J instead of JCL? Although more and more frame­works are using it, a lot of devel­op­ers and archi­tects stick to Jakarta Com­mons Log­ging with Log4J, why is that? Read more »

Tags: , , , , ,
Posted under Java | 8 Comments »

Charmed by Vaadin

Written by Mike van Vendeloo on April 3, 2011 – 21:28

Since my visit to Devoxx last novem­ber, I have been charmed by Vaadin. Although it is a very dif­fer­ent way of cre­at­ing your web appli­ca­tion GUI, since every­thing is done in Java, it has poten­tial.
Java devel­op­ers are most of the time not very good in cre­at­ing user inter­faces, so the styling and lay­out is not their focus. Now with Vaadin you do not need to, since a lot of it comes out of the box.
It reminds me of pro­gram­ming win­dows appli­ca­tions in MFC/C++. Although most of you will com­pare it to Swing (I have no expe­ri­ence with Swing though).

Next to using GWT, which means it can eas­ily be extended with other GWT wid­gets, there are already a lot of com­po­nents that can be down­loaded from the Vaadin Direc­tory. Although not all of them open source and free of license, a great place to start.
One thing I am miss­ing is a bet­ter Maven sup­port. A more sub­stan­tial maven arche­type would be nice. Also a lot of the exten­sions in the direc­tory are not avail­able via Maven yet, or are in BETA phase. That is OK for my pet store project, but in an enter­prise envi­ron­ment, I really like to have at least a 1.0 ver­sion and solid maven repos­i­tory support.

Another rea­son to keep look­ing at Vaadin is the Vaadin TouchKit, with which you can cre­ate mobile appli­ca­tions. So whatch Vaadin this year!

Tags: , , ,
Posted under Java | No Comments »

Reusing unit test support classes across maven modules

Written by Mike van Vendeloo on July 12, 2010 – 21:15

Dur­ing a project I encoun­tered a prob­lem reusing my builder classes I was using to cre­ate my test fix­tures. I wanted to use them in both my web­ser­vice project as my ser­vice layer project. Nor­mally it is not a prob­lem to use a mod­ule as a depen­dency, but I had never had the need to reuse classes that were not in my main sources, but in my test sources.
Read more »

Posted under Maven | No Comments »