mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
[ACS-11535] ci search test npe fix (#2256)
Co-authored-by: Grzegorz Oleksy <grzegorz.oleksy@hyland.com>
This commit is contained in:
committed by
GitHub
co-authored by
Grzegorz Oleksy
parent
7d3ba70611
commit
d298bd4d81
+4
@@ -79,8 +79,12 @@ public class SearchTest extends AbstractSearchServicesE2ETest
|
||||
nodes.assertThat().entriesListIsNotEmpty();
|
||||
|
||||
SearchNodeModel entity = nodes.getEntryByIndex(0);
|
||||
// MNT-25404: search/score is only populated when highlighting is requested
|
||||
if (entity.getSearch() != null)
|
||||
{
|
||||
entity.assertThat().field("search").contains("score");
|
||||
entity.getSearch().assertThat().field("score").isNotNull();
|
||||
}
|
||||
Assert.assertEquals(entity.getName(),"pangram.txt");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user