question: public void testDecoder6 ( ) { boolean res ; String originalAppIdName = mAppIdName ; int originalContentTypeValue = mContentTypeValue ; Random rd = new Random ( ) ; for ( int i = 0 ; i < OMA_APPLICATION_ID_NAMES . length ; i ++ ) { mAppIdName = OMA_APPLICATION_ID_NAMES [ i ] ; mContentTypeValue = rd . nextInt ( 0x0FFF ) ; byte [ ] pdu = createPDU ( 6 ) ; WspTypeDecoder pduDecoder = new WspTypeDecoder ( pdu ) ; res = pduDecoder . seekXWapApplicationId ( mWspHeaderStart , mWspHeaderStart + mWspHeaderLen - 1 ) ; assertTrue ( res ) ; int index = ( int ) pduDecoder . getValue32 ( ) ; res = pduDecoder . decodeXWapApplicationId ( index ) ; assertTrue ( res ) ; Log . d ( LOG_TAG , "mAppIdValue: [" + mAppIdName + "], val: [" + pduDecoder . getValueString ( ) + "]" ) ; assertTrue ( mAppIdName . equals ( pduDecoder . getValueString ( ) ) ) ; } mAppIdName = originalAppIdName ; mContentTypeValue = originalContentTypeValue ; }
target:  WspTypeDecoder test, decode string appid test