public void testProcessMsg6(){
  byte[] pdu=createPDU(1);
  int headerLen=pdu.length - (mGsmHeader.length + mUserDataHeader.length + mMessageBody.length);
  int pduType=6;
  int tranId=0;
  String originalPackageName=mPackageName;
  String originalClassName=mClassName;
  try {
    mClassName="com.android.smspush.unitTests.NoReceiver";
    IWapPushManager iwapman=getInterface();
    iwapman.addPackage(Integer.toString(mAppIdValue),Integer.toString(mContentTypeValue),mPackageName,mClassName,WapPushManagerParams.APP_TYPE_ACTIVITY,false,false);
    assertFalse((iwapman.processMessage(Integer.toString(mAppIdValue),Integer.toString(mContentTypeValue),createIntent(pduType,tranId)) & WapPushManagerParams.MESSAGE_HANDLED) == WapPushManagerParams.MESSAGE_HANDLED);
    iwapman.deletePackage(Integer.toString(mAppIdValue),Integer.toString(mContentTypeValue),mPackageName,mClassName);
    iwapman.addPackage(Integer.toString(mAppIdValue),Integer.toString(mContentTypeValue),mPackageName,mClassName,WapPushManagerParams.APP_TYPE_SERVICE,false,false);
    assertFalse((iwapman.processMessage(Integer.toString(mAppIdValue),Integer.toString(mContentTypeValue),createIntent(pduType,tranId)) & WapPushManagerParams.MESSAGE_HANDLED) == WapPushManagerParams.MESSAGE_HANDLED);
    iwapman.deletePackage(Integer.toString(mAppIdValue),Integer.toString(mContentTypeValue),mPackageName,mClassName);
  }
 catch (  RemoteException e) {
    assertTrue(false);
  }
  mPackageName=originalPackageName;
  mClassName=originalClassName;
}

public void testProcessMsg6 ( ) { byte [ ] pdu = createPDU ( 1 ) ; int headerLen = pdu . length - ( mGsmHeader . length + mUserDataHeader . length + mMessageBody . length ) ; int pduType = 6 ; int tranId = 0 ; String originalPackageName = mPackageName ; String originalClassName = mClassName ; try { mClassName = "com.android.smspush.unitTests.NoReceiver" ; IWapPushManager iwapman = getInterface ( ) ; iwapman . addPackage ( Integer . toString ( mAppIdValue ) , Integer . toString ( mContentTypeValue ) , mPackageName , mClassName , WapPushManagerParams . APP_TYPE_ACTIVITY , false , false ) ; assertFalse ( ( iwapman . processMessage ( Integer . toString ( mAppIdValue ) , Integer . toString ( mContentTypeValue ) , createIntent ( pduType , tranId ) ) & WapPushManagerParams . MESSAGE_HANDLED ) == WapPushManagerParams . MESSAGE_HANDLED ) ; iwapman . deletePackage ( Integer . toString ( mAppIdValue ) , Integer . toString ( mContentTypeValue ) , mPackageName , mClassName ) ; iwapman . addPackage ( Integer . toString ( mAppIdValue ) , Integer . toString ( mContentTypeValue ) , mPackageName , mClassName , WapPushManagerParams . APP_TYPE_SERVICE , false , false ) ; assertFalse ( ( iwapman . processMessage ( Integer . toString ( mAppIdValue ) , Integer . toString ( mContentTypeValue ) , createIntent ( pduType , tranId ) ) & WapPushManagerParams . MESSAGE_HANDLED ) == WapPushManagerParams . MESSAGE_HANDLED ) ; iwapman . deletePackage ( Integer . toString ( mAppIdValue ) , Integer . toString ( mContentTypeValue ) , mPackageName , mClassName ) ; } catch ( RemoteException e ) { assertTrue ( false ) ; } mPackageName = originalPackageName ; mClassName = originalClassName ; }
message processing test , no receiver application
