Wow! What an intense 3 days Devoxx is. Between the conference and the traveling and (of course!) those famous Belgian beers, it was an action-packed trip.
We enjoyed the conference a lot. It was professionally organised, had good speakers and had great food too. They even managed to keep the wireless network more-or-less functional with [...]
Posts under ‘Java’
Thoughts on Devoxx
Distributed JUnit testing with GridGain
Recently we have been running some problems while testing distributed applications with JUnit. The main problem was that we were running the client and the server within the same host. Although the test passed because the application logic was correct. Running the application distributed failed due to some errors related with the naming of the [...]
Automated integration testing with Selenium, Maven and Jetty
Here at The Server Labs we place a high value on automated unit and integration tests and believe that they are fundamental whether you are using an agile methodology or not.
We use Maven on the vast majority of our projects and we often use Jetty as a web container in plain Java web projects [...]
Compile-time architecture enforcement revisited: AspectJ, Maven and Eclipse
It has been a while since we first heard about compile-time checks with AspectJ at the Java Server Symposium in 2007. Since then we have been using and experimenting with this feature of AOP and AspectJ, and more recently we have used this technology to implement architecture enforcment rules for some of our clients.
In this [...]
Using Java Enums
This week I discovered two useful things you can do with Enums in Java.
The first and probably the more useful of the two is for formatting error messages in a consise and type safe way.
public enum ErrorMessageKey {
FILE_NOT_FOUND( "Cannot find file {0}"),
CANNOT_READ_FILE( "Cannot read file {0}"),
FILESTORE_CANNOT_OPEN_FILE( "Unable to open {0} nor {1}");
private final String message; [...]