This is an automated email from the ASF dual-hosted git repository. dkulp pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push: new 53b2be8 Update test to actually test the return values to make sure they are correct 53b2be8 is described below commit 53b2be829ed6cd7660ae90e035cc8588b0a8dfb1 Author: Daniel Kulp <dk...@apache.org> AuthorDate: Mon Mar 19 12:06:30 2018 -0400 Update test to actually test the return values to make sure they are correct --- .../cxf/systest/jaxrs/JAXRSClientServerBookTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java index 96a23a8..61dba7c 100644 --- a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java +++ b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java @@ -933,6 +933,20 @@ public class JAXRSClientServerBookTest extends AbstractBusClientServerTestBase { List<Object> cookies = r.getMetadata().get("Set-Cookie"); assertNotNull(cookies); assertEquals(3, cookies.size()); + + boolean hasDummy1 = false; + boolean hasDummy2 = false; + boolean hasJSESSION = false; + + for (Object o : cookies) { + String c = o.toString(); + hasDummy1 |= c.contains("=dummy;"); + hasDummy2 |= c.contains("=dummy2;"); + hasJSESSION |= c.contains("JSESSIONID"); + } + assertTrue("Did not contain JSESSIONID", hasJSESSION); + assertTrue("Did not contain dummy", hasDummy1); + assertTrue("Did not contain dummy2", hasDummy1); } -- To stop receiving notification emails like this one, please contact dk...@apache.org.