Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2010-05-24 18:15:47 -0400
committerJoakim Erdfelt2010-05-24 18:15:47 -0400
commita7fb0f47293728b0e673d283b2e13c7284bd665d (patch)
treeae40d62603fc38e626d53e6a28534c26a6df592c
parent15c5e54628dba8cb99483e06e29ed2f4ec780ab7 (diff)
downloadorg.eclipse.jetty.project-a7fb0f47293728b0e673d283b2e13c7284bd665d.tar.gz
org.eclipse.jetty.project-a7fb0f47293728b0e673d283b2e13c7284bd665d.tar.xz
org.eclipse.jetty.project-a7fb0f47293728b0e673d283b2e13c7284bd665d.zip
Adding some meaning to the assertion failures while diagnosing a test failure
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1858 7e9141cc-0065-0410-87d8-b60c137991c4
-rw-r--r--jetty-servlets/src/test/java/org/eclipse/jetty/servlets/AbstractDoSFilterTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/AbstractDoSFilterTest.java b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/AbstractDoSFilterTest.java
index 2bad601e06..c2def31697 100644
--- a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/AbstractDoSFilterTest.java
+++ b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/AbstractDoSFilterTest.java
@@ -190,10 +190,10 @@ public abstract class AbstractDoSFilterTest
String last="GET /ctx/dos/test HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n";
String responses = doRequests(request+request+request+request,1,0,0,last);
//System.out.println("responses are " + responses);
- assertEquals(5,count(responses,"HTTP/1.1 200 OK"));
- assertEquals(1,count(responses,"DoSFilter: delayed"));
- assertEquals(1,count(responses,"DoSFilter: throttled"));
- assertEquals(0,count(responses,"DoSFilter: unavailable"));
+ assertEquals("200 OK responses", 5,count(responses,"HTTP/1.1 200 OK"));
+ assertEquals("delayed responses", 1,count(responses,"DoSFilter: delayed"));
+ assertEquals("throttled responses", 1,count(responses,"DoSFilter: throttled"));
+ assertEquals("unavailable responses", 0,count(responses,"DoSFilter: unavailable"));
other.join();
}

Back to the top