Return-Path: Delivered-To: apmail-activemq-camel-commits-archive@locus.apache.org Received: (qmail 95361 invoked from network); 14 Jul 2008 07:08:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2008 07:08:49 -0000 Received: (qmail 12910 invoked by uid 500); 14 Jul 2008 07:08:49 -0000 Delivered-To: apmail-activemq-camel-commits-archive@activemq.apache.org Received: (qmail 12889 invoked by uid 500); 14 Jul 2008 07:08:49 -0000 Mailing-List: contact camel-commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-commits@activemq.apache.org Received: (qmail 12880 invoked by uid 99); 14 Jul 2008 07:08:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 00:08:49 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.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; Mon, 14 Jul 2008 07:08:05 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 977FE2388A06; Mon, 14 Jul 2008 00:07:58 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r676495 - /activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/util/CxfEndpointUtilsWithSpringTest.java Date: Mon, 14 Jul 2008 07:07:58 -0000 To: camel-commits@activemq.apache.org From: ningjiang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080714070758.977FE2388A06@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ningjiang Date: Mon Jul 14 00:07:57 2008 New Revision: 676495 URL: http://svn.apache.org/viewvc?rev=676495&view=rev Log: Polished the CxfEndpointUtilsWithSpringTest Modified: activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/util/CxfEndpointUtilsWithSpringTest.java Modified: activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/util/CxfEndpointUtilsWithSpringTest.java URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/util/CxfEndpointUtilsWithSpringTest.java?rev=676495&r1=676494&r2=676495&view=diff ============================================================================== --- activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/util/CxfEndpointUtilsWithSpringTest.java (original) +++ activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/util/CxfEndpointUtilsWithSpringTest.java Mon Jul 14 00:07:57 2008 @@ -76,11 +76,12 @@ assertEquals("We should get the right service name", service, SERVICE_NAME); assertEquals("We should get the setDefaultBus value", CxfEndpointUtils.getSetDefaultBus(endpoint), true); + assertEquals("The cxf endpoint's DataFromat should be MESSAGE", CxfEndpointUtils.getDataFormat(endpoint), DataFormat.MESSAGE); } public void testGetDataFormatFromCxfEndpontProperties() throws Exception { CxfEndpoint endpoint = createEndpoint(getEndpointURI() + "?dataFormat=PAYLOAD"); - assertEquals("We should get the Message DataFormat", CxfEndpointUtils.getDataFormat(endpoint), + assertEquals("We should get the PAYLOAD DataFormat", CxfEndpointUtils.getDataFormat(endpoint), DataFormat.PAYLOAD); }