This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a webapp and a dependent lib project. The lib project and webapp both have test folders in addition to source folders where I am putting my unit tests. The tests have their own log4j.properties loaded from a propertyconfigurator so that we can figure out what isn't working. The problem is that when I run the actual webapp, I am picking up the log4j's from the test folders. This causes multiple appenders to be defined and double and triple logging.
I am in RAD/Eclipse, and we added the test folder as a source folder (which is probably the root of the problem) but if i do not, then when I try to run the Junit test via the right-click run as... menu, it doesn't find the classes as junit classes.
So I think I am setting my test folders up incorrectly. What is the correct way? Or if this is not wrong, how to I control my log4j problem?