← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5507: Forgot test change..

 

------------------------------------------------------------
revno: 5507
committer: Jo Størset <storset@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-12-20 14:17:11 +0100
message:
  Forgot test change..
modified:
  dhis-2/dhis-services/dhis-service-sms/src/test/java/org/hisp/dhis/sms/outbound/SmsMessageSenderTest.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-sms/src/test/java/org/hisp/dhis/sms/outbound/SmsMessageSenderTest.java'
--- dhis-2/dhis-services/dhis-service-sms/src/test/java/org/hisp/dhis/sms/outbound/SmsMessageSenderTest.java	2011-12-15 08:46:42 +0000
+++ dhis-2/dhis-services/dhis-service-sms/src/test/java/org/hisp/dhis/sms/outbound/SmsMessageSenderTest.java	2011-12-20 13:17:11 +0000
@@ -25,7 +25,6 @@
     @Test
     public void testMessageSender()
     {
-        OutboundSms sms = getSms();
         final User user = getUser();
         Map<User, Serializable> settings = getUserSettings( user );
 
@@ -43,13 +42,13 @@
 
         verify( outboundSmsService ).isEnabled();
         verify( userService ).getUserSettings( KEY_MESSAGE_SMS_NOTIFICATION, false );
-        verify( outboundSmsService ).sendMessage( refEq(sms) );
+        verify( outboundSmsService ).sendMessage( refEq(getSms()) );
     }
 
     private OutboundSms getSms()
     {
         OutboundSms sms = new OutboundSms();
-        sms.setMessage( "From null, Hello: hello" );
+        sms.setMessage( "From null - Hello: hello" );
         sms.setRecipients( new HashSet<String>() {{ add("222222");}} );
         return sms;
     }