removed sun tests. dump to std err

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1211 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-01-24 23:46:49 +00:00
parent 4a35f6c109
commit 0b7850d179
5 changed files with 7 additions and 27 deletions

View File

@ -15,7 +15,6 @@ package org.eclipse.jetty.client;
public class AsyncSslHttpExchangeTest extends SslHttpExchangeTest
{
@Override
protected void setUp() throws Exception
{
@ -27,9 +26,4 @@ public class AsyncSslHttpExchangeTest extends SslHttpExchangeTest
_httpClient.start();
}
@Override
public void testSun() throws Exception
{
super.testSun();
}
}

View File

@ -17,7 +17,6 @@ import java.io.File;
public class ExternalKeyStoreAsyncSslHttpExchangeTest extends SslHttpExchangeTest
{
@Override
protected void setUp() throws Exception
{
@ -36,8 +35,4 @@ public class ExternalKeyStoreAsyncSslHttpExchangeTest extends SslHttpExchangeTes
_httpClient.start();
}
@Override
public void testSun() throws Exception
{
}
}

View File

@ -257,20 +257,6 @@ public class HttpExchangeTest extends TestCase
}
}
public void testSun() throws Exception
{
ContentExchange httpExchange=new ContentExchange();
httpExchange.setURL(_scheme+"www.sun.com/");
httpExchange.setMethod(HttpMethods.GET);
_httpClient.send(httpExchange);
int status = httpExchange.waitForDone();
String result=httpExchange.getResponseContent();
assertTrue(result.indexOf("<title>Sun Microsystems</title>")>0);
assertEquals(HttpExchange.STATUS_COMPLETED, status);
assertEquals(HttpStatus.OK_200,httpExchange.getResponseStatus());
}
public void testProxy() throws Exception
{
if (_scheme.equals("https://"))

View File

@ -246,7 +246,7 @@ public class Server extends HandlerWrapper implements Attributes
}
}
if (Log.isDebugEnabled())
Log.debug(dump());
System.err.println(dump());
mex.ifExceptionThrow();
}

View File

@ -22,13 +22,18 @@ import javax.servlet.http.HttpServletResponse;
public class NoJspServlet extends HttpServlet
{
private boolean _warned;
/* ------------------------------------------------------------ */
/*
* @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
*/
protected void doGet(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException
{
if (!_warned)
getServletContext().log("No JSP support. Check that JSP jars are in lib/jsp and that the JSP option has been specified to start.jar");
_warned=true;
response.sendError(500,"JSP support not configured");
}