public void testDecoder4(){
  boolean res;
  int originalAppIdValue=mAppIdValue;
  int originalContentTypeValue=mContentTypeValue;
  Random rd=new Random();
  for (int i=0; i < 100; i++) {
    mAppIdValue=rd.nextInt(0x0FFFFFFF);
    mContentTypeValue=rd.nextInt(0x0FFF);
    byte[] pdu=createPDU(4);
    WspTypeDecoder pduDecoder=new WspTypeDecoder(pdu);
    res=pduDecoder.seekXWapApplicationId(mWspHeaderStart,mWspHeaderStart + mWspHeaderLen - 1);
    assertFalse(res);
  }
  mAppIdValue=originalAppIdValue;
  mContentTypeValue=originalContentTypeValue;
}

public void testDecoder4 ( ) { boolean res ; int originalAppIdValue = mAppIdValue ; int originalContentTypeValue = mContentTypeValue ; Random rd = new Random ( ) ; for ( int i = 0 ; i < 100 ; i ++ ) { mAppIdValue = rd . nextInt ( 0x0FFFFFFF ) ; mContentTypeValue = rd . nextInt ( 0x0FFF ) ; byte [ ] pdu = createPDU ( 4 ) ; WspTypeDecoder pduDecoder = new WspTypeDecoder ( pdu ) ; res = pduDecoder . seekXWapApplicationId ( mWspHeaderStart , mWspHeaderStart + mWspHeaderLen - 1 ) ; assertFalse ( res ) ; } mAppIdValue = originalAppIdValue ; mContentTypeValue = originalContentTypeValue ; }
wsptypedecoder test , no appid test
