1 38 package com.gargoylesoftware.htmlunit; 39 40 import java.io.File; 41 import java.io.IOException; 42 import java.util.Properties; 43 44 import com.gargoylesoftware.base.testing.AcceptAllTestFilter; 45 import com.gargoylesoftware.base.testing.RecursiveTestSuite; 46 47 55 public class MainTestSuite extends RecursiveTestSuite { 56 57 66 public MainTestSuite( final String name ) throws IOException { 67 super( new File("."), new AcceptAllTestFilter() ); 68 69 enableAllLogging(); 70 } 71 72 73 76 public void enableAllLogging() { 77 final Properties properties = System.getProperties(); 78 properties.put("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog"); 79 properties.put("org.apache.commons.logging.simplelog.defaultlog", "trace"); 80 81 final String prefix = "org.apache.commons.logging.simplelog.log."; 82 properties.put(prefix+"org.apache.commons.httpclient.Authenticator", "info"); 83 properties.put(prefix+"org.apache.commons.httpclient.Cookie", "info"); 84 properties.put(prefix+"org.apache.commons.httpclient.HeaderElement", "info"); 85 properties.put(prefix+"org.apache.commons.httpclient.HttpClient", "info"); 86 properties.put(prefix+"org.apache.commons.httpclient.HttpConnection", "info"); 87 properties.put(prefix+"org.apache.commons.httpclient.HttpMethod", "info"); 88 properties.put(prefix+"org.apache.commons.httpclient.HttpParser", "info"); 89 properties.put(prefix+"org.apache.commons.httpclient.HttpState", "info"); 90 properties.put(prefix+"org.apache.commons.httpclient.ResponseInputStream", "info"); 91 properties.put(prefix+"org.apache.commons.httpclient.cookie.CookieSpec", "info"); 92 properties.put(prefix+"org.apache.commons.httpclient.methods.GetMethod", "info"); 93 properties.put(prefix+"org.apache.commons.httpclient.HttpMethodBase", "info"); 94 properties.put(prefix+"org.apache.commons.logging.simplelog.showdatetime", "true"); 95 properties.put(prefix+"httpclient.wire", "info"); 96 properties.put(prefix+"org.apache.commons.httpclient", "info"); 97 98 99 } 100 } 101 | Popular Tags |