ItemSelectorRepositoryEntryBrowserUtil { public static String getItemSelectorReturnTypeClassName( ItemSelectorReturnTypeResolver <? extends ItemSelectorReturnType, FileEntry> itemSelectorReturnTypeResolver, ItemSelectorReturnType itemSelectorReturnType) { if (itemSelectorReturnTypeResolver != null) { Class<? extends ItemSelectorReturnType> itemSelectorReturnTypeClass = itemSelectorReturnTypeResolver. getItemSelectorReturnTypeClass(); return itemSelectorReturnTypeClass.getName(); } return ClassUtil.getClassName(itemSelectorReturnType); }  static void addPortletBreadcrumbEntries(
			long folderId, String displayStyle,
			HttpServletRequest httpServletRequest,
			LiferayPortletRequest liferayPortletRequest,
			LiferayPortletResponse liferayPortletResponse,
			PortletURL portletURL); @Deprecated static void addPortletBreadcrumbEntries(
			long folderId, String displayStyle,
			HttpServletRequest httpServletRequest,
			LiferayPortletResponse liferayPortletResponse,
			PortletURL portletURL); static JSONObject getItemMetadataJSONObject(
			FileEntry fileEntry, Locale locale); static String getItemSelectorReturnTypeClassName(
		ItemSelectorReturnTypeResolver
			<? extends ItemSelectorReturnType, FileEntry>
				itemSelectorReturnTypeResolver,
		ItemSelectorReturnType itemSelectorReturnType); static String getValue(
			ItemSelectorReturnTypeResolver
				<? extends ItemSelectorReturnType, FileEntry>
					itemSelectorReturnTypeResolver,
			ItemSelectorReturnType itemSelectorReturnType, FileEntry fileEntry,
			ThemeDisplay themeDisplay);  }
@Test public void testGetItemSelectorReturnTypeClassNameWithoutResolver() throws Exception { String itemSelectorReturnTypeClassName = ItemSelectorRepositoryEntryBrowserUtil. getItemSelectorReturnTypeClassName( null, new TestItemSelectorReturnType()); Class<TestItemSelectorReturnType> testItemSelectorReturnTypeClass = TestItemSelectorReturnType.class; Assert.assertEquals( testItemSelectorReturnTypeClass.getName(), itemSelectorReturnTypeClassName); }
@Test public void testGetItemSelectorReturnTypeClassNameWithResolver() throws Exception { String itemSelectorReturnTypeClassName = ItemSelectorRepositoryEntryBrowserUtil. getItemSelectorReturnTypeClassName( new TestFileEntryItemSelectorReturnTypeResolver(), new TestItemSelectorReturnType()); Class<FileEntryItemSelectorReturnType> fileEntryItemSelectorReturnTypeClass = FileEntryItemSelectorReturnType.class; Assert.assertEquals( fileEntryItemSelectorReturnTypeClass.getName(), itemSelectorReturnTypeClassName); }