Class IndexArchiveProviderTestKit<T extends IndexArchiveProvider>

java.lang.Object
de.cxp.ocs.smartsuggest.spi.test.IndexArchiveProviderTestKit<T>
Type Parameters:
T -

public class IndexArchiveProviderTestKit<T extends IndexArchiveProvider> extends Object

This is a set of different tests, that each IndexArchiveProvider implementation should pass. It can easily be used in the testing context of the according implementation.

Most methods return the tested instance, so you can do more assertions.

  • Constructor Details

    • IndexArchiveProviderTestKit

      public IndexArchiveProviderTestKit()
  • Method Details

    • testAll

      public void testAll() throws Exception
      Throws:
      Exception
    • standaloneTest

      public T standaloneTest() throws Exception
      Throws:
      Exception
    • integrationTest

      public T integrationTest() throws Exception
      Throws:
      Exception
    • serviceLoaderTest

      public void serviceLoaderTest()
    • integrationTestCompoundIndexArchiver

      public T integrationTestCompoundIndexArchiver() throws Exception
      Only run this test, if your implementation extends the CompoundIndexArchiveProvider class.
      Returns:
      the tested instance
      Throws:
      Exception - in case of some unexpected behaviour
      AssertionError - if test failed