public void testDecoder7(){
  boolean res;
  String originalAppIdName=mAppIdName;
  int originalContentTypeValue=mContentTypeValue;
  Random rd=new Random();
  for (int i=0; i < OMA_CONTENT_TYPE_NAMES.length; i++) {
    mContentTypeName=OMA_CONTENT_TYPE_NAMES[i];
    byte[] pdu=createPDU(7);
    WspTypeDecoder pduDecoder=new WspTypeDecoder(pdu);
    res=pduDecoder.decodeContentType(mWspContentTypeStart);
    assertTrue(res);
    Log.d(LOG_TAG,"mContentTypeName: [" + mContentTypeName + "], val: ["+ pduDecoder.getValueString()+ "]");
    assertTrue(mContentTypeName.equals(pduDecoder.getValueString()));
  }
  mAppIdName=originalAppIdName;
  mContentTypeValue=originalContentTypeValue;
}

public void testDecoder7 ( ) { boolean res ; String originalAppIdName = mAppIdName ; int originalContentTypeValue = mContentTypeValue ; Random rd = new Random ( ) ; for ( int i = 0 ; i < OMA_CONTENT_TYPE_NAMES . length ; i ++ ) { mContentTypeName = OMA_CONTENT_TYPE_NAMES [ i ] ; byte [ ] pdu = createPDU ( 7 ) ; WspTypeDecoder pduDecoder = new WspTypeDecoder ( pdu ) ; res = pduDecoder . decodeContentType ( mWspContentTypeStart ) ; assertTrue ( res ) ; Log . d ( LOG_TAG , "mContentTypeName: [" + mContentTypeName + "], val: [" + pduDecoder . getValueString ( ) + "]" ) ; assertTrue ( mContentTypeName . equals ( pduDecoder . getValueString ( ) ) ) ; } mAppIdName = originalAppIdName ; mContentTypeValue = originalContentTypeValue ; }
wsptypedecoder test , decode oma content type
