Source:
public void testLoadSample_1 ( ) throws java.lang.Exception { java.io.InputStream xmlStream = getTestResource ( "/com/android/sdklib/testdata/addons_list_sample_1.xml" ) ; int version = mFetcher._getXmlSchemaVersion ( xmlStream ) ; assertEquals ( 1 , version ) ; java.lang.Boolean [ ] validatorFound = new java.lang.Boolean [ ] { java.lang.Boolean.FALSE } ; java.lang.String [ ] validationError = new java.lang.String [ ] { null } ; java.lang.String url = "not-a-valid-url://addons_list.xml" ; java.lang.String uri = mFetcher._validateXml ( xmlStream , url , version , validationError , validatorFound ) ; assertEquals ( java.lang.Boolean.TRUE , validatorFound [ 0 ] ) ; assertEquals ( null , validationError [ 0 ] ) ; assertEquals ( com.android.sdklib.repository.SdkAddonsListConstants.getSchemaUri ( 1 ) , uri ) ; com.android.sdklib.internal.repository.MockMonitor monitor = new com.android.sdklib.internal.repository.MockMonitor ( ) ; org.w3c.dom.Document doc = mFetcher._getDocument ( xmlStream , monitor ) ; assertNotNull ( doc ) ; com.android.sdklib.internal.repository.AddonsListFetcher.Site [ ] result = mFetcher._parseAddonsList ( doc , uri , monitor ) ; assertEquals ( "" , monitor.getCapturedDescriptions ( ) ) ; assertEquals ( "" , monitor.getCapturedResults ( ) ) ; assertEquals ( 3 , result.length ) ; assertEquals ( "My Example Add-ons." , result [ 0 ] . getUiName ( ) ) ; assertEquals ( "http://www.example.com/my_addons.xml" , result [ 0 ] . getUrl ( ) ) ; assertEquals ( "ありがとうございます。" , result [ 1 ] . getUiName ( ) ) ; assertEquals ( "http://www.example.co.jp/addons.xml" , result [ 1 ] . getUrl ( ) ) ; assertEquals ( "Example of directory URL." , result [ 2 ] . getUiName ( ) ) ; assertEquals ( "http://www.example.com/" , result [ 2 ] . getUrl ( ) ) ; }

Target:
public void testLoadSample_1 ( ) throws java.lang.Exception { java.io.InputStream xmlStream = getTestResource ( "/com/android/sdklib/testdata/addons_list_sample_1.xml" ) ; int version = mFetcher._getXmlSchemaVersion ( xmlStream ) ; assertEquals ( 1 , version ) ; java.lang.Boolean [ ] validatorFound = new java.lang.Boolean [ ] { java.lang.Boolean.FALSE } ; java.lang.String [ ] validationError = new java.lang.String [ ] { null } ; java.lang.String url = "not-a-valid-url://addons_list.xml" ; java.lang.String uri = mFetcher._validateXml ( xmlStream , url , version , validationError , validatorFound ) ; assertEquals ( java.lang.Boolean.TRUE , validatorFound [ 0 ] ) ; assertEquals ( null , validationError [ 0 ] ) ; assertEquals ( com.android.sdklib.repository.SdkAddonsListConstants.getSchemaUri ( 1 ) , uri ) ; com.android.sdklib.internal.repository.MockMonitor monitor = new com.android.sdklib.internal.repository.MockMonitor ( ) ; org.w3c.dom.Document doc = mFetcher._getDocument ( xmlStream , monitor ) ; assertNotNull ( doc ) ; com.android.sdklib.internal.repository.AddonsListFetcher.Site [ ] result = mFetcher._parseAddonsList ( doc , uri , monitor ) ; assertEquals ( "" , monitor.getCapturedDescriptions ( ) ) ; assertEquals ( "" , monitor.getCapturedResults ( ) ) ; assertEquals ( 3 , result.length ) ; assertEquals ( "My Example Add-ons." , result [ 0 ] . getUiName ( ) ) ; assertEquals ( "http://www.example.com/my_addons.xml" , result [ 0 ] . getUrl ( ) ) ; assertEquals ( "ありがとうございます。" , result [ 1 ] . getUiName ( ) ) ; assertEquals ( "http://www.example.co.jp/addons.xml" , result [ 1 ] . getUrl ( ) ) ; assertEquals ( "Example of directory URL." , result [ 2 ] . getUiName ( ) ) ; assertEquals ( "http://www.example.com/" , result [ 2 ] . getUrl ( ) ) ; }