Class ThreadLocalSearcherCacheExtension

java.lang.Object
com.atlassian.jira.junit.extensions.ThreadLocalSearcherCacheExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension

@Deprecated(since="10.4", forRemoval=true) public class ThreadLocalSearcherCacheExtension extends Object implements org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeEachCallback
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.4, to be removed when ManagedIndexSearcher is removed.
Starts and stops ThreadLocalSearcherCache's searcher context before/after each test. This is required for tests that rely on ManagedIndexSearcherFactory.
Since:
10.4
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ThreadLocalSearcherCacheExtension

      public ThreadLocalSearcherCacheExtension()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • beforeEach

      public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback
      Throws:
      Exception
    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
      Throws:
      Exception