This post originated from an RSS feed registered with Java Buzz
by Brian McCallister.
Original Post: John Ashcroft
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
com.thoughtworks.ashcroft.runtime.CantDoThat: You can't read from files during unit tests: log4j.properties
at com.thoughtworks.ashcroft.runtime.JohnAshcroft.cantDoThat(JohnAshcroft.java:48)
Blocking access to log4j.properties is a little vicious when you use an aspect for logging which statically initializes a logger ;-)