Brian’s Stuff

Stuff I don’t want to forget (again!)

Tag archive for ‘junit’

Testing @Configurable using the Maven Surefire plugin

I am using the @Configurable annotation to inject dependencies using AspectJ load time weaving and I still want to be able to unit test my code using the Maven Surefire plugin. The following plugin configuration ensures the spring-agent dependency downloaded to my local Maven repository and configures the command line for the JVM. <plugin> <groupId>org.apache.maven.plugins</groupId> [...]

Switching to SLF4J

After years of fanatical devotion I have decided to cast aside Jakarta Commons Logging (JCL) in favour of Simple Logging Facade for Java (SLF4J).