Source:
public void testFormatFormText ( ) { com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor desc = new com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor ( "application" ) ; desc.setSdkUrl ( ( ( com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.MANIFEST_SDK_URL ) + "TagApplication" ) ) ; java.lang.String docBaseUrl = "http://base" ; assertEquals ( "<form><li style=\"image\" value=\"image\"></li></form>" , com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.formatFormText ( "" , desc , docBaseUrl ) ) ; assertEquals ( "<form><li style=\"image\" value=\"image\"><a href=\"http://base/reference/android/R.styleable.html#TagApplication\">application</a></li></form>" , com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.formatFormText ( "<code>application</code>" , desc , docBaseUrl ) ) ; assertEquals ( "<form><li style=\"image\" value=\"image\"><b>android.content.Intent</b></li></form>" , com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.formatFormText ( "{@link android.content.Intent}" , desc , docBaseUrl ) ) ; assertEquals ( "<form><li style=\"image\" value=\"image\"><a href=\"http://base/reference/android/R.styleable.html#AndroidManifestPermission\">AndroidManifestPermission</a></li></form>" , com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.formatFormText ( "{@link #AndroidManifestPermission}" , desc , docBaseUrl ) ) ; assertEquals ( "<form><li style=\"image\" value=\"image\"><a href=\"http://base/reference/android/R.styleable.html#AndroidManifestPermission\">\"permission\"</a></li></form>" , com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.formatFormText ( "{@link #AndroidManifestPermission &lt;permission&gt;}" , desc , docBaseUrl ) ) ; }

Target:
public void testFormatFormText ( ) { com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor desc = new com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor ( "application" ) ; desc.setSdkUrl ( ( ( DescriptorsUtils.MANIFEST_SDK_URL ) + "TagApplication" ) ) ; java.lang.String docBaseUrl = "http://base" ; assertEquals ( "<form><li style=\"image\" value=\"image\"></li></form>" , com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.formatFormText ( "" , desc , docBaseUrl ) ) ; assertEquals ( "<form><li style=\"image\" value=\"image\"><a href=\"http://base/reference/android/R.styleable.html#TagApplication\">application</a></li></form>" , com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.formatFormText ( "<code>application</code>" , desc , docBaseUrl ) ) ; assertEquals ( "<form><li style=\"image\" value=\"image\"><b>android.content.Intent</b></li></form>" , com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.formatFormText ( "{@link android.content.Intent}" , desc , docBaseUrl ) ) ; assertEquals ( "<form><li style=\"image\" value=\"image\"><a href=\"http://base/reference/android/R.styleable.html#AndroidManifestPermission\">AndroidManifestPermission</a></li></form>" , com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.formatFormText ( "{@link #AndroidManifestPermission}" , desc , docBaseUrl ) ) ; assertEquals ( "<form><li style=\"image\" value=\"image\"><a href=\"http://base/reference/android/R.styleable.html#AndroidManifestPermission\">\"permission\"</a></li></form>" , com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.formatFormText ( "{@link #AndroidManifestPermission &lt;permission&gt;}" , desc , docBaseUrl ) ) ; }