Package com.helger.commons.mock
Class SPITestHelper
- java.lang.Object
-
- com.helger.commons.mock.SPITestHelper
-
public final class SPITestHelper extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSPITestHelper.EMode
-
Field Summary
Fields Modifier and Type Field Description static StringMAIN_SERVICESProject relative path to main SPI directorystatic StringTEST_SERVICESProject relative path to test SPI directory
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ICommonsSortedMap<String,ICommonsSortedSet<String>>testIfAllMainSPIImplementationsAreValid(boolean bContinueOnError)static ICommonsSortedMap<String,ICommonsSortedSet<String>>testIfAllSPIImplementationsAreValid()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 Detail
-
TEST_SERVICES
public static final String TEST_SERVICES
Project relative path to test SPI directory- See Also:
- Constant Field Values
-
MAIN_SERVICES
public static final String MAIN_SERVICES
Project relative path to main SPI directory- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-