Skip to content

Commit

Permalink
LPS-44476 Match previous commit even though this method name was accu…
Browse files Browse the repository at this point in the history
…rate
  • Loading branch information
brianchandotcom committed Jul 18, 2014
1 parent 6f85d8e commit 1b5c378
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void testBlankDocument() {

Assert.assertNull(searchResult.getSummary());

assertThatEverythingButSummaryIsEmpty(searchResult);
assertSearchResult(searchResult);
}

@Test
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -132,7 +132,7 @@ public void testSummaryFromIndexer() throws Exception {

Assert.assertSame(summary, searchResult.getSummary());

assertThatEverythingButSummaryIsEmpty(searchResult);
assertSearchResult(searchResult);
}

@Test
Expand All @@ -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());

Expand Down

0 comments on commit 1b5c378

Please sign in to comment.