Added more useful logging
This commit is contained in:
@@ -21,7 +21,10 @@ import org.apache.log4j.AppenderSkeleton;
|
||||
import org.apache.log4j.BasicConfigurator;
|
||||
import org.apache.log4j.Level;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.log4j.PropertyConfigurator;
|
||||
import org.apache.log4j.spi.LoggingEvent;
|
||||
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
import org.springframework.ws.MockWebServiceMessage;
|
||||
import org.springframework.ws.MockWebServiceMessageFactory;
|
||||
import org.springframework.ws.context.DefaultMessageContext;
|
||||
@@ -45,6 +48,12 @@ public class PayloadLoggingInterceptorTest extends TestCase {
|
||||
appender.reset();
|
||||
}
|
||||
|
||||
protected void tearDown() throws Exception {
|
||||
BasicConfigurator.resetConfiguration();
|
||||
ClassPathResource resource = new ClassPathResource("log4j.properties");
|
||||
PropertyConfigurator.configure(resource.getURL());
|
||||
}
|
||||
|
||||
public void testHandleRequestDisabled() throws Exception {
|
||||
interceptor.setLogRequest(false);
|
||||
int eventCount = appender.getCount();
|
||||
|
||||
@@ -21,7 +21,10 @@ import org.apache.log4j.AppenderSkeleton;
|
||||
import org.apache.log4j.BasicConfigurator;
|
||||
import org.apache.log4j.Level;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.log4j.PropertyConfigurator;
|
||||
import org.apache.log4j.spi.LoggingEvent;
|
||||
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
import org.springframework.ws.context.DefaultMessageContext;
|
||||
import org.springframework.ws.context.MessageContext;
|
||||
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory;
|
||||
@@ -45,6 +48,12 @@ public class SoapEnvelopeLoggingInterceptorTest extends TestCase {
|
||||
appender.reset();
|
||||
}
|
||||
|
||||
protected void tearDown() throws Exception {
|
||||
BasicConfigurator.resetConfiguration();
|
||||
ClassPathResource resource = new ClassPathResource("log4j.properties");
|
||||
PropertyConfigurator.configure(resource.getURL());
|
||||
}
|
||||
|
||||
public void testHandleRequestDisabled() throws Exception {
|
||||
interceptor.setLogRequest(false);
|
||||
int eventCount = appender.getCount();
|
||||
|
||||
Reference in New Issue
Block a user