You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cm...@apache.org on 2011/05/01 01:10:36 UTC
svn commit: r1098184 - in
/camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration:
SmppComponentIntegrationTest.java SmppComponentSpringIntegrationTest.java
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));