addded a variable to test if Hudson is being unit tested or not.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11965 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-09-02 21:34:47 +00:00
1 parent fcfa6f02e6
commit 3edd36e40d
2 files changed
+15 -1

No files matched your search

@@ -381,6 +381,9 @@ public abstract class HudsonTestCase extends TestCase {
// suppress INFO output from Spring, which is verbose
Logger.getLogger("org.springframework").setLevel(Level.WARNING);
// hudson-behavior.js relies on this to decide whether it's running unit tests.
System.setProperty("hudson.unitTest","true");
}