Source:
public final void testLocalSdkTest_getPkgInfo_Docs ( ) { assertNull ( mLS.getPkgInfo ( LocalSdk.PKG_DOCS ) ) ; mLS.clearLocalPkg ( LocalSdk.PKG_ALL ) ; mFOp.recordExistingFolder ( "/sdk/docs" ) ; mFOp.recordExistingFile ( "/sdk/docs/source.properties" , ( "Pkg.License=Terms and Conditions\n" + ( ( ( ( ( "Archive.Os=ANY\n" + "AndroidVersion.ApiLevel=18\n" ) + "Pkg.Revision=2\n" ) + "Pkg.LicenseRef=android-sdk-license\n" ) + "Archive.Arch=ANY\n" ) + "Pkg.SourceUrl=https\\://dl-ssl.google.com/android/repository/repository-8.xml" ) ) ) ; mFOp.recordExistingFile ( "/sdk/docs/index.html" , "placeholder" ) ; com.android.sdklib.repository.local.LocalPkgInfo pi = mLS.getPkgInfo ( LocalSdk.PKG_DOCS ) ; assertNotNull ( pi ) ; assertTrue ( ( pi instanceof com.android.sdklib.repository.local.LocalDocPkgInfo ) ) ; assertEquals ( new java.io.File ( "/sdk/docs" ) , pi.getLocalDir ( ) ) ; assertSame ( mLS , pi.getLocalSdk ( ) ) ; assertEquals ( null , pi.getLoadError ( ) ) ; assertEquals ( new com.android.sdklib.repository.MajorRevision ( 2 ) , pi.getMajorRevision ( ) ) ; assertEquals ( "<LocalDocPkgInfo MajorRev=2>" , pi.toString ( ) ) ; java.lang.Package pkg = pi.getPackage ( ) ; assertNotNull ( pkg ) ; assertEquals ( new com.android.sdklib.repository.MajorRevision ( 2 ) , pkg.getRevision ( ) ) ; assertEquals ( "Documentation for Android SDK, API 18, revision 2" , pkg.getShortDescription ( ) ) ; assertTrue ( pkg.isLocal ( ) ) ; com.android.sdklib.internal.repository.archives.Archive a = pkg.getArchives ( ) [ 0 ] ; assertTrue ( a.isLocal ( ) ) ; assertEquals ( "/sdk/docs" , mFOp.getAgnosticAbsPath ( a.getLocalOsPath ( ) ) ) ; }

Target:
public final void testLocalSdkTest_getPkgInfo_Docs ( ) { assertNull ( mLS.getPkgInfo ( PkgType.PKG_DOCS ) ) ; mLS.clearLocalPkg ( PkgType.PKG_ALL ) ; mFOp.recordExistingFolder ( "/sdk/docs" ) ; mFOp.recordExistingFile ( "/sdk/docs/source.properties" , ( "Pkg.License=Terms and Conditions\n" + ( ( ( ( ( "Archive.Os=ANY\n" + "AndroidVersion.ApiLevel=18\n" ) + "Pkg.Revision=2\n" ) + "Pkg.LicenseRef=android-sdk-license\n" ) + "Archive.Arch=ANY\n" ) + "Pkg.SourceUrl=https\\://dl-ssl.google.com/android/repository/repository-8.xml" ) ) ) ; mFOp.recordExistingFile ( "/sdk/docs/index.html" , "placeholder" ) ; com.android.sdklib.repository.local.LocalPkgInfo pi = mLS.getPkgInfo ( PkgType.PKG_DOCS ) ; assertNotNull ( pi ) ; assertTrue ( ( pi instanceof com.android.sdklib.repository.local.LocalDocPkgInfo ) ) ; assertEquals ( new java.io.File ( "/sdk/docs" ) , pi.getLocalDir ( ) ) ; assertSame ( mLS , pi.getLocalSdk ( ) ) ; assertEquals ( null , pi.getLoadError ( ) ) ; assertEquals ( new com.android.sdklib.repository.MajorRevision ( 2 ) , pi.getDesc ( ) . getMajorRevision ( ) ) ; assertEquals ( "<LocalDocPkgInfo:PkgDesc Android=API 18 MajorRev=2>" , pi.toString ( ) ) ; java.lang.Package pkg = pi.getPackage ( ) ; assertNotNull ( pkg ) ; assertEquals ( new com.android.sdklib.repository.MajorRevision ( 2 ) , pkg.getRevision ( ) ) ; assertEquals ( "Documentation for Android SDK, API 18, revision 2" , pkg.getShortDescription ( ) ) ; assertTrue ( pkg.isLocal ( ) ) ; com.android.sdklib.internal.repository.archives.Archive a = pkg.getArchives ( ) [ 0 ] ; assertTrue ( a.isLocal ( ) ) ; assertEquals ( "/sdk/docs" , mFOp.getAgnosticAbsPath ( a.getLocalOsPath ( ) ) ) ; }