From 1b5c378d4785565fe328e8fd2e9dc144e4cd4c90 Mon Sep 17 00:00:00 2001 From: Brian Chan Date: Fri, 18 Jul 2014 11:50:29 -0700 Subject: [PATCH] LPS-44476 Match previous commit even though this method name was accurate --- .../portal/kernel/search/SearchResultUtilTest.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/portal-service/test/unit/com/liferay/portal/kernel/search/SearchResultUtilTest.java b/portal-service/test/unit/com/liferay/portal/kernel/search/SearchResultUtilTest.java index e79bf29948cd31..5a86be859c20d6 100644 --- a/portal-service/test/unit/com/liferay/portal/kernel/search/SearchResultUtilTest.java +++ b/portal-service/test/unit/com/liferay/portal/kernel/search/SearchResultUtilTest.java @@ -51,7 +51,7 @@ public void testBlankDocument() { Assert.assertNull(searchResult.getSummary()); - assertThatEverythingButSummaryIsEmpty(searchResult); + assertSearchResult(searchResult); } @Test @@ -102,7 +102,7 @@ public void testSummaryFromAssetRenderer() throws Exception { Assert.assertSame(portletURL, summary.getPortletURL()); Assert.assertEquals(SearchTestUtil.SUMMARY_TITLE, summary.getTitle()); - assertThatEverythingButSummaryIsEmpty(searchResult); + assertSearchResult(searchResult); } @Test @@ -132,7 +132,7 @@ public void testSummaryFromIndexer() throws Exception { Assert.assertSame(summary, searchResult.getSummary()); - assertThatEverythingButSummaryIsEmpty(searchResult); + assertSearchResult(searchResult); } @Test @@ -154,9 +154,7 @@ public void testTwoDocumentsWithSameEntryKey() { searchResult.getClassPK(), SearchTestUtil.ENTRY_CLASS_PK); } - protected void assertThatEverythingButSummaryIsEmpty( - SearchResult searchResult) { - + protected void assertSearchResult(SearchResult searchResult) { Assert.assertEquals(StringPool.BLANK, searchResult.getClassName()); Assert.assertEquals(0L, searchResult.getClassPK());