X-Git-Url: http://jaekl.net/gitweb/?p=frank.git;a=blobdiff_plain;f=test%2Fnet%2Fjaekl%2Fqd%2Fhttp%2FRequestBrokerTest.java;h=b287348b8f381907e8411b6b656c6b4733cd4d36;hp=2892a1775dc667afd5deb76ed13e64d841d930ee;hb=202d4ea89a7d029bf64ca8f51541971c8db09675;hpb=d870b8b1ca2e633b0f2b58969cc042888d07db6e diff --git a/test/net/jaekl/qd/http/RequestBrokerTest.java b/test/net/jaekl/qd/http/RequestBrokerTest.java index 2892a17..b287348 100644 --- a/test/net/jaekl/qd/http/RequestBrokerTest.java +++ b/test/net/jaekl/qd/http/RequestBrokerTest.java @@ -2,7 +2,7 @@ package net.jaekl.qd.http; import java.util.ArrayList; -import junit.framework.Assert; +import org.junit.Assert; import net.jaekl.qd.QDException; import net.jaekl.qd.xml.ParseResult; import net.jaekl.qd.xml.XmlParseException; @@ -189,7 +189,8 @@ public class RequestBrokerTest { @Test public void test_submitAndParse_throwsInvalidResultException() { - InvalidResponseException ire = new InvalidResponseException(GATEWAY, METHOD, new SAXParseException("dummy", null)); + final String RESPONSE = "Must specify stop number."; + InvalidResponseException ire = new InvalidResponseException(new SAXParseException("dummy", null), GATEWAY, METHOD, RESPONSE); ArrayList emptyParams = new ArrayList(); RequestBrokerMock rbm = new RequestBrokerMock(GATEWAY, emptyParams); @@ -204,6 +205,7 @@ public class RequestBrokerTest { Assert.assertEquals(ire, qde); Assert.assertTrue(ire.toString().contains(GATEWAY)); Assert.assertTrue(ire.toString().contains(METHOD)); + Assert.assertTrue(ire.toString().contains(RESPONSE)); } } }