org.opennms.sms.reflector.smsservice
Class MobileMsgResponseMatchers

java.lang.Object
  extended by org.opennms.sms.reflector.smsservice.MobileMsgResponseMatchers

public class MobileMsgResponseMatchers
extends Object

MobileMsgResponseMatchers class.

Version:
$Id: $
Author:
ranger

Constructor Summary
MobileMsgResponseMatchers()
           
 
Method Summary
static MobileMsgResponseMatcher and(MobileMsgResponseMatcher... matchers)
          and
static boolean isAMatch(String expected, String actual)
          isAMatch
static MobileMsgResponseMatcher isSms()
          isSms
static MobileMsgResponseMatcher isUssd()
          isUssd
static MobileMsgResponseMatcher or(MobileMsgResponseMatcher... matchers)
          or
static MobileMsgResponseMatcher smsFrom(String originator)
          smsFrom
static MobileMsgResponseMatcher smsFromRecipient()
          smsFromRecipient
static MobileMsgResponseMatcher textMatches(String regex)
          textMatches
static void tracef(String format, Object... args)
          tracef
static MobileMsgResponseMatcher ussdStatusIs(org.smslib.USSDSessionStatus status)
          ussdStatusIs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobileMsgResponseMatchers

public MobileMsgResponseMatchers()
Method Detail

smsFrom

public static MobileMsgResponseMatcher smsFrom(String originator)

smsFrom

Parameters:
originator - a String object.
Returns:
a MobileMsgResponseMatcher object.

smsFromRecipient

public static MobileMsgResponseMatcher smsFromRecipient()

smsFromRecipient

Returns:
a MobileMsgResponseMatcher object.

and

public static MobileMsgResponseMatcher and(MobileMsgResponseMatcher... matchers)

and

Parameters:
matchers - a MobileMsgResponseMatcher object.
Returns:
a MobileMsgResponseMatcher object.

or

public static MobileMsgResponseMatcher or(MobileMsgResponseMatcher... matchers)

or

Parameters:
matchers - a MobileMsgResponseMatcher object.
Returns:
a MobileMsgResponseMatcher object.

textMatches

public static MobileMsgResponseMatcher textMatches(String regex)

textMatches

Parameters:
regex - a String object.
Returns:
a MobileMsgResponseMatcher object.

isSms

public static MobileMsgResponseMatcher isSms()

isSms

Returns:
a MobileMsgResponseMatcher object.

isUssd

public static MobileMsgResponseMatcher isUssd()

isUssd

Returns:
a MobileMsgResponseMatcher object.

ussdStatusIs

public static MobileMsgResponseMatcher ussdStatusIs(org.smslib.USSDSessionStatus status)

ussdStatusIs

Parameters:
status - a USSDSessionStatus object.
Returns:
a MobileMsgResponseMatcher object.

tracef

public static void tracef(String format,
                          Object... args)

tracef

Parameters:
format - a String object.
args - a Object object.

isAMatch

public static boolean isAMatch(String expected,
                               String actual)

isAMatch

Parameters:
expected - a String object.
actual - a String object.
Returns:
a boolean.


Copyright © 2011. All Rights Reserved.