Package com.helger.commons.mock
Class SPITestHelper
java.lang.Object
com.helger.commons.mock.SPITestHelper
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ICommonsSortedMap<String, ICommonsSortedSet<String>> testIfAllMainSPIImplementationsAreValid(boolean bContinueOnError) static ICommonsSortedMap<String, ICommonsSortedSet<String>> static ICommonsSortedMap<String, ICommonsSortedSet<String>> testIfAllSPIImplementationsAreValid(boolean bContinueOnError) static ICommonsSortedMap<String, ICommonsSortedSet<String>> testIfAllSPIImplementationsAreValid(String sBaseDir, SPITestHelper.EMode eMode) Test if all SPI configurations and implementations are correctly configured.static ICommonsSortedMap<String, ICommonsSortedSet<String>> testIfAllTestSPIImplementationsAreValid(boolean bContinueOnError)
-
Field Details
-
TEST_SERVICES
Project relative path to test SPI directory- See Also:
-
MAIN_SERVICES
Project relative path to main SPI directory- See Also:
-
-
Method Details
-
testIfAllSPIImplementationsAreValid
@Nonnull @ReturnsMutableCopy public static ICommonsSortedMap<String,ICommonsSortedSet<String>> testIfAllSPIImplementationsAreValid(@Nonnull String sBaseDir, @Nonnull SPITestHelper.EMode eMode) throws IOException Test if all SPI configurations and implementations are correctly configured.- Parameters:
sBaseDir- Base directory. May not benull.eMode- Validation mode. May not benull.- Returns:
- A map from interface to all found implementations in the order of appearance.
- Throws:
IOException- In case of read error
-
testIfAllMainSPIImplementationsAreValid
@Nonnull @ReturnsMutableCopy public static ICommonsSortedMap<String,ICommonsSortedSet<String>> testIfAllMainSPIImplementationsAreValid(boolean bContinueOnError) throws IOException - Throws:
IOException
-
testIfAllTestSPIImplementationsAreValid
@Nonnull @ReturnsMutableCopy public static ICommonsSortedMap<String,ICommonsSortedSet<String>> testIfAllTestSPIImplementationsAreValid(boolean bContinueOnError) throws IOException - Throws:
IOException
-
testIfAllSPIImplementationsAreValid
@Nonnull @ReturnsMutableCopy public static ICommonsSortedMap<String,ICommonsSortedSet<String>> testIfAllSPIImplementationsAreValid(boolean bContinueOnError) throws IOException - Throws:
IOException
-
testIfAllSPIImplementationsAreValid
@Nonnull @ReturnsMutableCopy public static ICommonsSortedMap<String,ICommonsSortedSet<String>> testIfAllSPIImplementationsAreValid() throws IOException- Throws:
IOException
-