Package net.shibboleth.idp.module
Class IdPModuleTest
- java.lang.Object
-
- net.shibboleth.idp.module.IdPModuleTest
-
public class IdPModuleTest extends Object
Unit tests exercising module code.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.module.ModuleContextcontextprivate PathtestHomeprivate net.shibboleth.idp.module.IdPModuletestModuleprivate static StringVEL_DATAprivate static StringVEL_OTHER_DATAprivate static StringXML_DATAprivate static StringXML_OTHER_DATA
-
Constructor Summary
Constructors Constructor Description IdPModuleTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static TrustEngine<? super X509Credential>buildExplicitKeyTrustEngine()voidsetUp()voidtearDown()private voidtearDownWorker()voidtestBadModules()voidtestDisableNoTree()voidtestEnableClean()voidtestEnableExistingDifferent()voidtestEnableExistingSame()voidtestEnableNoTree()voidtestModule()
-
-
-
Field Detail
-
XML_DATA
private static final String XML_DATA
- See Also:
- Constant Field Values
-
XML_OTHER_DATA
private static final String XML_OTHER_DATA
- See Also:
- Constant Field Values
-
VEL_DATA
private static final String VEL_DATA
- See Also:
- Constant Field Values
-
VEL_OTHER_DATA
private static final String VEL_OTHER_DATA
- See Also:
- Constant Field Values
-
testHome
private Path testHome
-
testModule
private net.shibboleth.idp.module.IdPModule testModule
-
context
private net.shibboleth.idp.module.ModuleContext context
-
-
Method Detail
-
tearDownWorker
private void tearDownWorker() throws IOException- Throws:
IOException
-
tearDown
@AfterMethod public void tearDown() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
testBadModules
public void testBadModules()
-
testModule
public void testModule()
-
testEnableNoTree
public void testEnableNoTree() throws net.shibboleth.idp.module.ModuleException, IOException- Throws:
net.shibboleth.idp.module.ModuleExceptionIOException
-
testDisableNoTree
public void testDisableNoTree() throws net.shibboleth.idp.module.ModuleException- Throws:
net.shibboleth.idp.module.ModuleException
-
testEnableClean
public void testEnableClean() throws net.shibboleth.idp.module.ModuleException, IOException- Throws:
net.shibboleth.idp.module.ModuleExceptionIOException
-
testEnableExistingSame
public void testEnableExistingSame() throws IOException, net.shibboleth.idp.module.ModuleException- Throws:
IOExceptionnet.shibboleth.idp.module.ModuleException
-
testEnableExistingDifferent
public void testEnableExistingDifferent() throws IOException, net.shibboleth.idp.module.ModuleException- Throws:
IOExceptionnet.shibboleth.idp.module.ModuleException
-
buildExplicitKeyTrustEngine
private static TrustEngine<? super X509Credential> buildExplicitKeyTrustEngine() throws URISyntaxException, CertificateException, IOException
-
-