Package org.opensaml.core.testing
Class XMLObjectProviderInitializerBaseTestCase
- java.lang.Object
-
- org.opensaml.core.testing.InitializerBaseTestCase
-
- org.opensaml.core.testing.XMLObjectProviderInitializerBaseTestCase
-
- Direct Known Subclasses:
XMLObjectProviderInitializerTest
public abstract class XMLObjectProviderInitializerBaseTestCase extends InitializerBaseTestCase
An abstract base class for XMLObject provider initializers which takes care of the boilerplate, requiring concrete subclasses to only supply the initializer impl to test along with the collection of QNames to check.
-
-
Constructor Summary
Constructors Constructor Description XMLObjectProviderInitializerBaseTestCase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract InitializergetTestedInitializer()Get the initializer impl to test.protected abstract QName[]getTestedProviders()Get the array of QNames to test from the XMLObjectProviderRegistry.voidtestProviderInit()Test basic provider registration.-
Methods inherited from class org.opensaml.core.testing.InitializerBaseTestCase
setUp, tearDown
-
-
-
-
Method Detail
-
testProviderInit
public void testProviderInit() throws InitializationExceptionTest basic provider registration.- Throws:
InitializationException- if there is an error during provider init
-
getTestedInitializer
protected abstract Initializer getTestedInitializer()
Get the initializer impl to test.- Returns:
- the initializer impl instance
-
getTestedProviders
protected abstract QName[] getTestedProviders()
Get the array of QNames to test from the XMLObjectProviderRegistry.- Returns:
- an array of XMLObject provider QNames
-
-