cleaned up output from test harnesses

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2113 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-07-14 01:59:26 +00:00
parent b495ca6bb4
commit d3012461ac
4 changed files with 6 additions and 17 deletions

View File

@ -58,7 +58,6 @@ public abstract class ConnectorTimeoutTest extends HttpServerTestFixture
long start = System.currentTimeMillis();
String in = IO.toString(is);
System.err.println(in);
Thread.sleep(300);
assertEquals(-1, is.read());

View File

@ -50,8 +50,9 @@ public class RequestTest
{
_server = new Server();
_connector = new LocalConnector();
_connector.setHeaderBufferSize(512);
_connector.setRequestHeaderSize(512);
_connector.setRequestBufferSize(1024);
_connector.setResponseHeaderSize(512);
_connector.setResponseBufferSize(2048);
_server.addConnector(_connector);
_handler = new RequestHandler();
@ -186,7 +187,6 @@ public class RequestTest
"ABCDEFGHIJ\r\n";
String responses = _connector.getResponses(request);
System.err.println("response="+responses);
int index=responses.indexOf("read="+(int)'0');
assertTrue(index>0);
@ -231,7 +231,6 @@ public class RequestTest
"ABCDEFGHIJ\r\n";
String responses = _connector.getResponses(request);
System.err.println("response="+responses);
int index=responses.indexOf("read="+(int)'0');
assertTrue(index>0);

View File

@ -90,8 +90,6 @@ public class JSONTest
obj7.put("x","value");
System.err.println();
System.err.println();
String s = JSON.toString(map);
assertTrue(s.indexOf("\"n1\":null")>=0);
@ -110,7 +108,6 @@ public class JSONTest
gadget.setWoggles(new Woggle[]{w0,w1});
s = JSON.toString(new Gadget[]{gadget});
System.out.println(s);
assertTrue(s.startsWith("["));
assertTrue(s.indexOf("\"modulated\":false")>=0);
assertTrue(s.indexOf("\"shields\":42")>=0);
@ -207,7 +204,6 @@ public class JSONTest
{
String withzero="\u0000";
String json = JSON.toString(withzero);
System.err.println(json);
}
/* ------------------------------------------------------------ */
@ -365,10 +361,9 @@ public class JSONTest
map.put("g0",g0);
StringBuffer buf = new StringBuffer();
json.append(buf,map);
json.append((Appendable)buf,map);
String js=buf.toString();
System.err.println(js);
assertTrue(js.indexOf("\"date\":\"Thu Jan 01 00:00:00 GMT 1970\"")>=0);
assertTrue(js.indexOf("org.eclipse.jetty.util.ajax.JSONTest$Woggle")>=0);
assertTrue(js.indexOf("org.eclipse.jetty.util.ajax.JSONTest$Gizmo")<0);
@ -380,9 +375,8 @@ public class JSONTest
json.addConvertor(Enum.class,new JSONEnumConvertor(false));
w0.nested=null;
buf = new StringBuffer();
json.append(buf,map);
json.append((Appendable)buf,map);
js=buf.toString();
System.err.println(js);
assertTrue(js.indexOf("\"date\":\"Thu Jan 01 00:00:00 GMT 1970\"")<0);
assertTrue(js.indexOf("org.eclipse.jetty.util.ajax.JSONTest$Woggle")>=0);
assertTrue(js.indexOf("org.eclipse.jetty.util.ajax.JSONTest$Gizmo")<0);
@ -399,9 +393,8 @@ public class JSONTest
json.addConvertor(Date.class,new JSONDateConvertor(DateCache.DEFAULT_FORMAT,TimeZone.getTimeZone("GMT"),true,l));
json.addConvertor(Enum.class,new JSONEnumConvertor(true));
buf = new StringBuffer();
json.append(buf,map);
json.append((Appendable)buf,map);
js=buf.toString();
System.err.println(js);
map2=(HashMap)json.parse(new JSON.StringSource(js));
assertTrue(map2.get("date") instanceof Date);

View File

@ -52,9 +52,7 @@ public class ResourceCollectionTest
assertEquals("1 - one", getContent(rc2, "1.txt"));
assertEquals("2 - two", getContent(rc2, "2.txt"));
assertEquals("3 - three", getContent(rc2, "3.txt"));
for(String s : rc1.list())
System.err.println(s);
}
@Test