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 375E03647 for ; Sat, 30 Apr 2011 23:11:01 +0000 (UTC) Received: (qmail 95574 invoked by uid 500); 30 Apr 2011 23:11:01 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 95546 invoked by uid 500); 30 Apr 2011 23:11:01 -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 95538 invoked by uid 99); 30 Apr 2011 23:11:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Apr 2011 23:11:01 +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; Sat, 30 Apr 2011 23:10:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EA59923889E2; Sat, 30 Apr 2011 23:10:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1098184 - in /camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration: SmppComponentIntegrationTest.java SmppComponentSpringIntegrationTest.java Date: Sat, 30 Apr 2011 23:10:36 -0000 To: commits@camel.apache.org From: cmueller@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110430231036.EA59923889E2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cmueller Date: Sat Apr 30 23:10:36 2011 New Revision: 1098184 URL: http://svn.apache.org/viewvc?rev=1098184&view=rev Log: updated test on user formum based issue Modified: camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration/SmppComponentIntegrationTest.java camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration/SmppComponentSpringIntegrationTest.java Modified: camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration/SmppComponentIntegrationTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration/SmppComponentIntegrationTest.java?rev=1098184&r1=1098183&r2=1098184&view=diff ============================================================================== --- camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration/SmppComponentIntegrationTest.java (original) +++ camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration/SmppComponentIntegrationTest.java Sat Apr 30 23:10:36 2011 @@ -22,6 +22,7 @@ import org.apache.camel.ExchangePattern; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.component.smpp.SmppBinding; +import org.apache.camel.component.smpp.SmppMessageType; import org.apache.camel.test.junit4.CamelTestSupport; import org.junit.Ignore; import org.junit.Test; @@ -39,10 +40,10 @@ import org.junit.Test; * @version * @author muellerc */ +@Ignore("Must be manually tested") public class SmppComponentIntegrationTest extends CamelTestSupport { @Test - @Ignore("Must be manually tested") public void sendInOut() throws Exception { MockEndpoint result = getMockEndpoint("mock:result"); result.expectedMessageCount(1); @@ -56,6 +57,7 @@ public class SmppComponentIntegrationTes assertMockEndpointsSatisfied(); Exchange resultExchange = result.getExchanges().get(0); + assertEquals(SmppMessageType.DeliveryReceipt.toString(), resultExchange.getIn().getHeader(SmppBinding.MESSAGE_TYPE)); assertEquals("Hello SMPP World!", resultExchange.getIn().getBody()); assertNotNull(resultExchange.getIn().getHeader(SmppBinding.ID)); assertEquals(1, resultExchange.getIn().getHeader(SmppBinding.SUBMITTED)); @@ -68,7 +70,6 @@ public class SmppComponentIntegrationTes } @Test - @Ignore("Must be manually tested") public void sendInOnly() throws Exception { MockEndpoint result = getMockEndpoint("mock:result"); result.expectedMessageCount(1); @@ -82,6 +83,7 @@ public class SmppComponentIntegrationTes assertMockEndpointsSatisfied(); Exchange resultExchange = result.getExchanges().get(0); + assertEquals(SmppMessageType.DeliveryReceipt.toString(), resultExchange.getIn().getHeader(SmppBinding.MESSAGE_TYPE)); assertEquals("Hello SMPP World!", resultExchange.getIn().getBody()); assertNotNull(resultExchange.getIn().getHeader(SmppBinding.ID)); assertEquals(1, resultExchange.getIn().getHeader(SmppBinding.SUBMITTED)); Modified: camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration/SmppComponentSpringIntegrationTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration/SmppComponentSpringIntegrationTest.java?rev=1098184&r1=1098183&r2=1098184&view=diff ============================================================================== --- camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration/SmppComponentSpringIntegrationTest.java (original) +++ camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration/SmppComponentSpringIntegrationTest.java Sat Apr 30 23:10:36 2011 @@ -21,6 +21,7 @@ import org.apache.camel.Exchange; import org.apache.camel.ExchangePattern; import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.component.smpp.SmppBinding; +import org.apache.camel.component.smpp.SmppMessageType; import org.apache.camel.test.junit4.CamelSpringTestSupport; import org.junit.Ignore; import org.junit.Test; @@ -39,10 +40,10 @@ import org.springframework.context.suppo * @version * @author muellerc */ +@Ignore("Must be manually tested") public class SmppComponentSpringIntegrationTest extends CamelSpringTestSupport { @Test - @Ignore("Must be manually tested") public void sendInOut() throws Exception { MockEndpoint result = getMockEndpoint("mock:result"); result.expectedMessageCount(1); @@ -56,6 +57,7 @@ public class SmppComponentSpringIntegrat assertMockEndpointsSatisfied(); Exchange resultExchange = result.getExchanges().get(0); + assertEquals(SmppMessageType.DeliveryReceipt.toString(), resultExchange.getIn().getHeader(SmppBinding.MESSAGE_TYPE)); assertEquals("Hello SMPP World!", resultExchange.getIn().getBody()); assertNotNull(resultExchange.getIn().getHeader(SmppBinding.ID)); assertEquals(1, resultExchange.getIn().getHeader(SmppBinding.SUBMITTED)); @@ -68,7 +70,6 @@ public class SmppComponentSpringIntegrat } @Test - @Ignore("Must be manually tested") public void sendInOnly() throws Exception { MockEndpoint result = getMockEndpoint("mock:result"); result.expectedMessageCount(1); @@ -82,6 +83,7 @@ public class SmppComponentSpringIntegrat assertMockEndpointsSatisfied(); Exchange resultExchange = result.getExchanges().get(0); + assertEquals(SmppMessageType.DeliveryReceipt.toString(), resultExchange.getIn().getHeader(SmppBinding.MESSAGE_TYPE)); assertEquals("Hello SMPP World!", resultExchange.getIn().getBody()); assertNotNull(resultExchange.getIn().getHeader(SmppBinding.ID)); assertEquals(1, resultExchange.getIn().getHeader(SmppBinding.SUBMITTED));