← Back to team overview

dhis2-users team mailing list archive

SMS data handler test issues


Hi everyone,

I'm working with eHealth Systems Africa on a datacapture project in Sierra
Leone and other neighboring countries.  What we are currently struggling
with is the consumption of SMS submissions generated both by an android app
and manually.  To improve this, I am currently trying to write some tests
for the DataValueSMSListener and I am stuck, and I think I've got some
dependencies missing or my project is not set up correctly. Specifically, I
am unable to write tests as I can initialize an instance of the listener
but the private smsCommandService instance variable is not initialized,
which results in a null pointer exception when parsing the SMS text.  Is
anyone familiar with the SMS services or can you refer me to someone who is?