Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EABB8795 for ; Tue, 16 Aug 2011 08:35:00 +0000 (UTC) Received: (qmail 99481 invoked by uid 500); 16 Aug 2011 08:34:58 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 96630 invoked by uid 500); 16 Aug 2011 08:34:49 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 96613 invoked by uid 99); 16 Aug 2011 08:34:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 08:34:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 08:34:43 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 547BB23889DA for ; Tue, 16 Aug 2011 08:34:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1158153 - /camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConusmerNamespacePayLoadTest.java Date: Tue, 16 Aug 2011 08:34:24 -0000 To: commits@camel.apache.org From: ningjiang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110816083424.547BB23889DA@eris.apache.org> Author: ningjiang Date: Tue Aug 16 08:34:23 2011 New Revision: 1158153 URL: http://svn.apache.org/viewvc?rev=1158153&view=rev Log: CAMEL-4336 clean up the test code Modified: camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConusmerNamespacePayLoadTest.java Modified: camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConusmerNamespacePayLoadTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConusmerNamespacePayLoadTest.java?rev=1158153&r1=1158152&r2=1158153&view=diff ============================================================================== --- camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConusmerNamespacePayLoadTest.java (original) +++ camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConusmerNamespacePayLoadTest.java Tue Aug 16 08:34:23 2011 @@ -25,6 +25,11 @@ import org.apache.http.util.EntityUtils; import org.junit.Test; public class CxfConusmerNamespacePayLoadTest extends CxfConsumerPayloadTest { + private static final String ECHO_RESPONSE = "" + + "" + + "echo Hello World!" + + ""; + private static final String ECHO_REQUEST = "" @@ -49,11 +54,10 @@ public class CxfConusmerNamespacePayLoad try { HttpResponse response = httpclient.execute(post); - //assertEquals(200, response.getStatusLine().getStatusCode()); + assertEquals(200, response.getStatusLine().getStatusCode()); String responseBody = EntityUtils.toString(response.getEntity()); - System.out.println(responseBody); - //assertEquals("Get a wrong response", correct, responseBody); + assertEquals("Get a wrong response", ECHO_RESPONSE, responseBody); } finally { httpclient.getConnectionManager().shutdown(); }