Read to a stream instead of a String, to remove a warning message.

This commit is contained in:
j2blake 2011-12-07 21:43:42 +00:00
parent 46a1fa669b
commit c800d0c877

View file

@ -3,6 +3,7 @@
package edu.cornell.mannlib.vitro.webapp.servlet.setup;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
@ -81,7 +82,8 @@ public class SolrSmokeTest implements ServletContextListener {
GetMethod method = new GetMethod(solrUrl.toExternalForm());
try {
int statusCode = client.executeMethod(method);
method.getResponseBody();
InputStream stream = method.getResponseBodyAsStream();
stream.close();
if (statusCode == HttpStatus.SC_OK) {
reportSuccess();