Skip to content

Commit db0ed41

Browse files
committed
[MSITE-880] AbstractSiteDeployWebDavTest should not log
1 parent 94e03e7 commit db0ed41

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

src/test/java/org/apache/maven/plugins/site/deploy/AbstractSiteDeployWebDavTest.java

+5-19
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
import org.junit.Test;
4444
import org.junit.runner.RunWith;
4545
import org.junit.runners.JUnit4;
46-
import org.slf4j.Logger;
47-
import org.slf4j.LoggerFactory;
4846

4947
/**
5048
* @author Olivier Lamy
@@ -57,8 +55,6 @@ public abstract class AbstractSiteDeployWebDavTest
5755

5856
File siteTargetPath = new File( getBasedir() + File.separator + "target" + File.separator + "siteTargetDeploy" );
5957

60-
private Logger log = LoggerFactory.getLogger( getClass() );
61-
6258
@Before
6359
public void setUp()
6460
throws Exception
@@ -158,18 +154,12 @@ public void davDeployThruProxyWithoutAuthzInProxy()
158154
assertContentInFiles();
159155

160156
assertTrue( requestsContainsProxyUse( simpleDavServerHandler.httpRequests ) );
161-
162-
for ( HttpRequest rq : simpleDavServerHandler.httpRequests )
163-
{
164-
log.info( rq.toString() );
165-
}
166-
167157
}
168158
finally
169159
{
170160
simpleDavServerHandler.stop();
171-
}
172-
161+
}
162+
173163
}
174164

175165
@Test
@@ -184,7 +174,7 @@ public void davDeployThruProxyWitAuthzInProxy() throws Exception
184174

185175
AuthAsyncProxyServlet servlet = new AuthAsyncProxyServlet( authentications, siteTargetPath );
186176

187-
SimpleDavServerHandler simpleDavServerHandler = new SimpleDavServerHandler( servlet );
177+
SimpleDavServerHandler simpleDavServerHandler = new SimpleDavServerHandler( servlet );
188178
try
189179
{
190180
File pluginXmlFile = getTestFile( "src/test/resources/unit/deploy-dav/pom.xml" );
@@ -242,16 +232,12 @@ public void davDeployThruProxyWitAuthzInProxy() throws Exception
242232
assertContentInFiles();
243233
assertTrue( requestsContainsProxyUse( servlet.httpRequests ) );
244234
assertAtLeastOneRequestContainsHeader( servlet.httpRequests, "Proxy-Authorization" );
245-
for ( HttpRequest rq : servlet.httpRequests )
246-
{
247-
log.info( rq.toString() );
248-
}
249235
}
250236
finally
251237
{
252238
simpleDavServerHandler.stop();
253-
}
254-
}
239+
}
240+
}
255241

256242
private void assertContentInFiles()
257243
throws Exception

0 commit comments

Comments
 (0)