[ 
https://issues.apache.org/jira/browse/SOLR-15839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17456023#comment-17456023
 ] 

Uwe Schindler commented on SOLR-15839:
--------------------------------------

Mocking of oal.search.Sort is not needed at all, see PR: 
https://github.com/apache/solr/pull/452

Will merge soon.

> After upgrade of Lucene a test mocking org.apache.lucene.search.Sort no 
> longer works (final class)
> --------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-15839
>                 URL: https://issues.apache.org/jira/browse/SOLR-15839
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Tests
>    Affects Versions: main (9.0)
>            Reporter: Uwe Schindler
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> See error message: 
> https://jenkins.thetaphi.de/job/Solr-main-Linux/2070/testReport/junit/org.apache.solr.handler.component/QueryComponentPartialResultsTest/includesPartialShardResultWhenUsingExplicitScoreSort/
> {noformat}
> Mockito cannot mock/spy because :
>  - final class
>       at 
> __randomizedtesting.SeedInfo.seed([73F81B5CBD838FB3:99A391C7F33C98A3]:0)
>       at 
> app//org.apache.solr.handler.component.MockSortSpecBuilder.withSortFields(MockSortSpecBuilder.java:37)
>       at 
> app//org.apache.solr.handler.component.QueryComponentPartialResultsTest.includesPartialShardResultWhenUsingExplicitScoreSort(QueryComponentPartialResultsTest.java:54)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to