ItemSelectorRepositoryEntryBrowserUtil { public static String getValue( ItemSelectorReturnTypeResolver <? extends ItemSelectorReturnType, FileEntry> itemSelectorReturnTypeResolver, ItemSelectorReturnType itemSelectorReturnType, FileEntry fileEntry, ThemeDisplay themeDisplay) throws Exception { if (itemSelectorReturnTypeResolver != null) { return itemSelectorReturnTypeResolver.getValue( fileEntry, themeDisplay); } return ItemSelectorRepositoryEntryBrowserReturnTypeUtil.getValue( itemSelectorReturnType, fileEntry, themeDisplay); }  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 testGetValueWithoutResolver() throws Exception { initMocks(); FileEntry fileEntry = mock(FileEntry.class); ThemeDisplay themeDisplay = mock(ThemeDisplay.class); String value = ItemSelectorRepositoryEntryBrowserUtil.getValue( null, new FileEntryItemSelectorReturnType(), fileEntry, themeDisplay); Assert.assertEquals( "ItemSelectorRepositoryEntryBrowserReturnTypeUtilValue", value); }
@Test public void testGetValueWithResolver() throws Exception { initMocks(); FileEntry fileEntry = mock(FileEntry.class); ThemeDisplay themeDisplay = mock(ThemeDisplay.class); String value = ItemSelectorRepositoryEntryBrowserUtil.getValue( new TestFileEntryItemSelectorReturnTypeResolver(), new TestItemSelectorReturnType(), fileEntry, themeDisplay); Assert.assertEquals( "TestFileEntryItemSelectorReturnTypeResolverValue", value); }