camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1143332 - in /camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp: SmppProducerLazySessionCreationTest.java SmppProducerTest.java
Date Wed, 06 Jul 2011 10:40:33 GMT
Author: davsclaus
Date: Wed Jul  6 10:40:33 2011
New Revision: 1143332

URL: http://svn.apache.org/viewvc?rev=1143332&view=rev
Log:
CAMEL-4170: Fixed broken unit tests.

Modified:
    camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerLazySessionCreationTest.java
    camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerTest.java

Modified: camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerLazySessionCreationTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerLazySessionCreationTest.java?rev=1143332&r1=1143331&r2=1143332&view=diff
==============================================================================
--- camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerLazySessionCreationTest.java
(original)
+++ camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerLazySessionCreationTest.java
Wed Jul  6 10:40:33 2011
@@ -25,6 +25,7 @@ import org.jsmpp.bean.ESMClass;
 import org.jsmpp.bean.GeneralDataCoding;
 import org.jsmpp.bean.MessageClass;
 import org.jsmpp.bean.NumberingPlanIndicator;
+import org.jsmpp.bean.OptionalParameter;
 import org.jsmpp.bean.RegisteredDelivery;
 import org.jsmpp.bean.SMSCDeliveryReceipt;
 import org.jsmpp.bean.SubmitSm;
@@ -86,6 +87,7 @@ public class SmppProducerLazySessionCrea
         expect(submitSm.getReplaceIfPresent()).andReturn((byte) 0);
         expect(submitSm.getDataCoding()).andReturn((byte) 0);
         expect(submitSm.getShortMessage()).andReturn("Hello SMPP world!".getBytes("ISO-8859-1"));
+        expect(submitSm.getOptionalParametes()).andReturn(new OptionalParameter[]{});
     }
 
     @Test

Modified: camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerTest.java?rev=1143332&r1=1143331&r2=1143332&view=diff
==============================================================================
--- camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerTest.java
(original)
+++ camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerTest.java
Wed Jul  6 10:40:33 2011
@@ -27,6 +27,7 @@ import org.jsmpp.bean.ESMClass;
 import org.jsmpp.bean.GeneralDataCoding;
 import org.jsmpp.bean.MessageClass;
 import org.jsmpp.bean.NumberingPlanIndicator;
+import org.jsmpp.bean.OptionalParameter;
 import org.jsmpp.bean.RegisteredDelivery;
 import org.jsmpp.bean.SMSCDeliveryReceipt;
 import org.jsmpp.bean.SubmitSm;
@@ -110,6 +111,7 @@ public class SmppProducerTest {
         expect(submitSm.getReplaceIfPresent()).andReturn((byte) 0);
         expect(submitSm.getDataCoding()).andReturn((byte) 0);
         expect(submitSm.getShortMessage()).andReturn("Hello SMPP world!".getBytes("ISO-8859-1"));
+        expect(submitSm.getOptionalParametes()).andReturn(new OptionalParameter[]{});
     }
     
     @Test
@@ -277,6 +279,7 @@ public class SmppProducerTest {
         expect(submitSm.getReplaceIfPresent()).andReturn((byte) 0);
         expect(submitSm.getDataCoding()).andReturn((byte) 4);
         expect(submitSm.getShortMessage()).andReturn("Hello SMPP world!".getBytes("ISO-8859-1"));
+        expect(submitSm.getOptionalParametes()).andReturn(new OptionalParameter[]{});
         expect(session.submitShortMessage(
                 eq("CMT"),
                 eq(TypeOfNumber.UNKNOWN),



Mime
View raw message