Class AdministrationLoaderUtil
- java.lang.Object
-
- net.officefloor.compile.test.administration.AdministrationLoaderUtil
-
public class AdministrationLoaderUtil extends java.lang.Object
Utility class for testing theAdministrationSource
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
AdministrationTypeBuilder<F,G>createAdministrationTypeBuilder(java.lang.Class<E> extensionInterface, java.lang.Class<F> flowKeyClass, java.lang.Class<G> governanceKeyClass)
Creates theAdministrationTypeBuilder
to create the expectedAdministrationType
.static <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>,S extends AdministrationSource<E,F,G>>
AdministrationType<E,F,G>loadAdministrationType(java.lang.Class<S> administrationSourceClass, java.lang.String... propertyNameValues)
Loads theAdministrationType
from theAdministrationSource
.static <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>,S extends AdministrationSource<E,F,G>>
AdministrationType<E,F,G>validateAdministratorType(AdministrationTypeBuilder<F,G> expectedAdministratorType, java.lang.Class<S> administratorSourceClass, java.lang.String... propertyNameValues)
Validates theAdministrationType
contained in theAdministrationTypeBuilder
against theAdministrationType
loaded from theAdministrationSource
.static <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>,S extends AdministrationSource<E,F,G>>
PropertyListvalidateSpecification(java.lang.Class<S> administrationSourceClass, java.lang.String... propertyNameLabels)
Validates theAdministrationSourceSpecification
for theAdministrationSource
.
-
-
-
Method Detail
-
validateSpecification
public static <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>,S extends AdministrationSource<E,F,G>> PropertyList validateSpecification(java.lang.Class<S> administrationSourceClass, java.lang.String... propertyNameLabels)
Validates theAdministrationSourceSpecification
for theAdministrationSource
.- Type Parameters:
E
- Extension interface type.F
-Flow
key type.G
-Governance
key type.S
-AdministrationSource
type.- Parameters:
administrationSourceClass
-AdministrationSource
class.propertyNameLabels
- Listing of name/label pairs for theProperty
instances.- Returns:
- Loaded
PropertyList
.
-
createAdministrationTypeBuilder
public static <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>> AdministrationTypeBuilder<F,G> createAdministrationTypeBuilder(java.lang.Class<E> extensionInterface, java.lang.Class<F> flowKeyClass, java.lang.Class<G> governanceKeyClass)
Creates theAdministrationTypeBuilder
to create the expectedAdministrationType
.- Type Parameters:
E
- Extension interface type.F
-Flow
key type.G
-Governance
key type.- Parameters:
extensionInterface
- Extension interface.flowKeyClass
-Flow
key type.governanceKeyClass
-Governance
key type.- Returns:
AdministrationTypeBuilder
.
-
validateAdministratorType
public static <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>,S extends AdministrationSource<E,F,G>> AdministrationType<E,F,G> validateAdministratorType(AdministrationTypeBuilder<F,G> expectedAdministratorType, java.lang.Class<S> administratorSourceClass, java.lang.String... propertyNameValues)
Validates theAdministrationType
contained in theAdministrationTypeBuilder
against theAdministrationType
loaded from theAdministrationSource
.- Type Parameters:
E
- Extension interface type.F
-Flow
key type.G
-Governance
key type.S
-AdministrationSource
type- Parameters:
expectedAdministratorType
- ExpectedAdministrationType
.administratorSourceClass
-AdministrationSource
class.propertyNameValues
- Properties to configure theAdministrationSource
..- Returns:
AdministrationType
loaded from theAdministrationSource
.
-
loadAdministrationType
public static <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>,S extends AdministrationSource<E,F,G>> AdministrationType<E,F,G> loadAdministrationType(java.lang.Class<S> administrationSourceClass, java.lang.String... propertyNameValues)
Loads theAdministrationType
from theAdministrationSource
.- Type Parameters:
E
- Extension interface type.F
-Flow
key type.G
-Governance
key type.S
-AdministrationSource
type.- Parameters:
administrationSourceClass
-AdministrationSource
class.propertyNameValues
-Property
name/value listing.- Returns:
AdministrationType
.
-
-