#spring

Programmatic Reload of Logback Configurations

Logback has the capability to programmatically and explicitly load various configurations. This can be useful when you need to adjust logging levels at runtime, and it’s actually pretty easy to do, as well. You’d want to use something like this for a long-running application, or one that has an extensive load process: imagine a production environment, where you want to see details that would be hidden by convention. For example, imagine you...

5 minute(s) read

Junit 4 examples

There seems to be some repeated questions about using JUnit. So I made a short example using JUnit 4 with ant. First here is the directory structure of my files. build build/build.sh build/build.xml lib lib/hamcrest-core-1.3.jar lib/junit-4.11.jar src src/org src/org/javachannel src/org/javachannel/SimulatedSpring.java test test/org test/org/javachannel test/org/javachannel/SimulatedSpringTest.java The class I want...

4 minute(s) read