From 55dd5975db403ae9695c0f38b47ecc2e80ad7926 Mon Sep 17 00:00:00 2001 From: lresende Date: Tue, 12 Oct 2010 23:37:33 +0000 Subject: TUSCANY-3716 - Adding Tuscany respondeHandler to be able to add HTTP headers that were configured declaratively git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1021952 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/binding/rest/wireformat/xml/CustomerServiceTestCase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/modules/binding-rest-runtime/src/test') diff --git a/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/CustomerServiceTestCase.java b/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/CustomerServiceTestCase.java index a7cbda20f4..c6e487596b 100644 --- a/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/CustomerServiceTestCase.java +++ b/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/CustomerServiceTestCase.java @@ -88,8 +88,8 @@ public class CustomerServiceTestCase { //System.out.println(">>>" + response.getText()); Assert.assertEquals(200, response.getResponseCode()); -// Assert.assertEquals("no-cache", response.getHeaderField("Cache-Control")); -// Assert.assertEquals("tuscany", response.getHeaderField("X-Tuscany")); + Assert.assertEquals("no-cache", response.getHeaderField("Cache-Control")); + Assert.assertEquals("tuscany", response.getHeaderField("X-Tuscany")); Assert.assertEquals(GET_RESPONSE, response.getText()); } -- cgit v1.2.3