43
43
import org .junit .Test ;
44
44
import org .junit .runner .RunWith ;
45
45
import org .junit .runners .JUnit4 ;
46
- import org .slf4j .Logger ;
47
- import org .slf4j .LoggerFactory ;
48
46
49
47
/**
50
48
* @author Olivier Lamy
@@ -57,8 +55,6 @@ public abstract class AbstractSiteDeployWebDavTest
57
55
58
56
File siteTargetPath = new File ( getBasedir () + File .separator + "target" + File .separator + "siteTargetDeploy" );
59
57
60
- private Logger log = LoggerFactory .getLogger ( getClass () );
61
-
62
58
@ Before
63
59
public void setUp ()
64
60
throws Exception
@@ -158,18 +154,12 @@ public void davDeployThruProxyWithoutAuthzInProxy()
158
154
assertContentInFiles ();
159
155
160
156
assertTrue ( requestsContainsProxyUse ( simpleDavServerHandler .httpRequests ) );
161
-
162
- for ( HttpRequest rq : simpleDavServerHandler .httpRequests )
163
- {
164
- log .info ( rq .toString () );
165
- }
166
-
167
157
}
168
158
finally
169
159
{
170
160
simpleDavServerHandler .stop ();
171
- }
172
-
161
+ }
162
+
173
163
}
174
164
175
165
@ Test
@@ -184,7 +174,7 @@ public void davDeployThruProxyWitAuthzInProxy() throws Exception
184
174
185
175
AuthAsyncProxyServlet servlet = new AuthAsyncProxyServlet ( authentications , siteTargetPath );
186
176
187
- SimpleDavServerHandler simpleDavServerHandler = new SimpleDavServerHandler ( servlet );
177
+ SimpleDavServerHandler simpleDavServerHandler = new SimpleDavServerHandler ( servlet );
188
178
try
189
179
{
190
180
File pluginXmlFile = getTestFile ( "src/test/resources/unit/deploy-dav/pom.xml" );
@@ -242,16 +232,12 @@ public void davDeployThruProxyWitAuthzInProxy() throws Exception
242
232
assertContentInFiles ();
243
233
assertTrue ( requestsContainsProxyUse ( servlet .httpRequests ) );
244
234
assertAtLeastOneRequestContainsHeader ( servlet .httpRequests , "Proxy-Authorization" );
245
- for ( HttpRequest rq : servlet .httpRequests )
246
- {
247
- log .info ( rq .toString () );
248
- }
249
235
}
250
236
finally
251
237
{
252
238
simpleDavServerHandler .stop ();
253
- }
254
- }
239
+ }
240
+ }
255
241
256
242
private void assertContentInFiles ()
257
243
throws Exception
0 commit comments