Author: pete.muir(a)jboss.org
Date: 2010-12-10 17:25:57 -0500 (Fri, 10 Dec 2010)
New Revision: 7132
Modified:
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/ClientConversationContextTest.java
Log:
fix weird test
Modified:
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/ClientConversationContextTest.java
===================================================================
---
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/ClientConversationContextTest.java 2010-12-10
18:48:30 UTC (rev 7131)
+++
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/ClientConversationContextTest.java 2010-12-10
22:25:57 UTC (rev 7132)
@@ -27,6 +27,7 @@
import org.jboss.testharness.impl.packaging.war.WebXml;
import org.testng.annotations.Test;
+import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlSpan;
@@ -324,15 +325,12 @@
assert page.getBody().getTextContent().contains("Cumulus congestus");
}
- @Test(groups = { "contexts" })
+ @Test(groups = { "contexts" },
expectedExceptions=FailingHttpStatusCodeException.class)
@SpecAssertion(section = "6.7.4", id = "tb")
public void testNonexistentConversationExceptionThrown() throws Exception
{
WebClient client = new WebClient();
- HtmlPage page = client.getPage(getPath("cumulus.jsf?cid=foo"));
-
- assert
page.getBody().getTextContent().contains("NonexistentConversationException thrown
properly");
- assert page.getBody().getTextContent().contains("Conversation.isTransient:
true");
+ client.getPage(getPath("cumulus.jsf", "foo"));
}
@Test
Show replies by date