Package de.cxp.ocs.smartsuggest.spi.test
Class IndexArchiveProviderTestKit<T extends IndexArchiveProvider>
java.lang.Object
de.cxp.ocs.smartsuggest.spi.test.IndexArchiveProviderTestKit<T>
- Type Parameters:
T
-
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOnly run this test, if your implementation extends theCompoundIndexArchiveProvider
class.void
void
testAll()
-
Constructor Details
-
IndexArchiveProviderTestKit
public IndexArchiveProviderTestKit()
-
-
Method Details
-
testAll
- Throws:
Exception
-
standaloneTest
- Throws:
Exception
-
integrationTest
- Throws:
Exception
-
serviceLoaderTest
public void serviceLoaderTest() -
integrationTestCompoundIndexArchiver
Only run this test, if your implementation extends theCompoundIndexArchiveProvider
class.- Returns:
- the tested instance
- Throws:
Exception
- in case of some unexpected behaviourAssertionError
- if test failed
-