Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-32329

Search Tests are not working

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 12.0
    • Fix Version/s: 12.0
    • Component/s: Search
    • Labels:
      None

      Description

      SAK-32252 and SAK-32082 worked fine individually, but once both are merged they are generating a problem in the test in the search tool.

      I'll try to resolve that because trunk is broken at this moment.

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.sakaiproject.search.tool.SearchBeanImplTest
      Tests run: 13, Failures: 0, Errors: 13, Skipped: 0, Time elapsed: 0.215 sec <<< FAILURE! - in org.sakaiproject.search.tool.SearchBeanImplTest
      testExtractSiteIdsFromPropertiesJustBlank(org.sakaiproject.search.tool.SearchBeanImplTest) Time elapsed: 0.137 sec <<< ERROR!
      java.lang.NoClassDefFoundError: org/elasticsearch/action/search/SearchResponse
      at org.sakaiproject.search.tool.SearchBeanImplTest.setUp(SearchBeanImplTest.java:32)
      Caused by: java.lang.ClassNotFoundException: org.elasticsearch.action.search.SearchResponse
      at org.sakaiproject.search.tool.SearchBeanImplTest.setUp(SearchBeanImplTest.java:32)

      and

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.sakaiproject.search.elasticsearch.ElasticSearchTest
      Tests run: 11, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 13.534 sec <<< FAILURE! - in org.sakaiproject.search.elasticsearch.ElasticSearchTest
      unnecessary Mockito stubbings(org.sakaiproject.search.elasticsearch.ElasticSearchTest) Time elapsed: 0.854 sec <<< ERROR!
      org.mockito.exceptions.misusing.UnnecessaryStubbingException:

      Unnecessary stubbings detected in test class: ElasticSearchTest
      Clean & maintainable test code requires zero unnecessary code.
      Following stubbings are unnecessary (click to navigate to relevant line of code):
      1. -> at org.sakaiproject.search.elasticsearch.ElasticSearchTest.setUp(ElasticSearchTest.java:173)
      Please remove unnecessary stubbings or use 'silent' option. More info: javadoc for UnnecessaryStubbingException class.

      Results :

      Tests in error:
      ElasticSearchTest.unnecessary Mockito stubbings ยป UnnecessaryStubbing
      Unneces...

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ddelblanco Diego del Blanco Orobitg
                Reporter:
                ddelblanco Diego del Blanco Orobitg
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code