TDD experiments

Whenever you want to try a new technology, framework, library and want to assess its appropriateness for your problem – write a test! Express your expectations with assertions and correct them if they proof to be wrong. Write test cases for behaviour / features your learned about the product. Check … Continue reading

Java reflection performance

For one of the projects to provide a piece of generic functionality I had to write a small library based on annotations and reflection. The reflective invocatons include new instance creation via java.lang.Constructor.newInstance(…) and field value retrieval via java.lang.Field.get(Object). Since this library had also to be efficient in terms of … Continue reading

Maven assembly plugin

This is a note about Maven assembly plugin (version 2.3) in case someone wants to build similar distribution as I did using maven. Basically, if you try to create a custom distribution of a multimodule project and one of your modules is a web module (project of type ‘war’) with … Continue reading

How to install JDK 7 on Apple Mac OS X

First of all, I have to mention that Java 7 is supported only on MacOS X 10.7 (Lion) and later. 1. Download JDK 7 for MacOS from Oracle’s download site: 2. Double click the downloaded jdk-7u7-macosx-x64.dmg file. In result it will be mounted as a new device named JDK … Continue reading