Class GovernanceLoaderUtil
- java.lang.Object
-
- net.officefloor.compile.test.governance.GovernanceLoaderUtil
-
public class GovernanceLoaderUtil extends java.lang.Object
Utility class for testing theGovernanceSource
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GovernanceTypeBuilder
createGovernanceTypeBuilder()
Creates theGovernanceTypeBuilder
to create the expectedGovernanceType
.static <I,F extends java.lang.Enum<F>,S extends GovernanceSource<I,F>>
GovernanceType<I,F>loadGovernanceType(java.lang.Class<S> governanceSourceClass, java.lang.String... propertyNameValues)
Loads theGovernanceType
from theGovernanceSource
.static <I,F extends java.lang.Enum<F>,S extends GovernanceSource<I,F>>
GovernanceType<I,F>validateGovernanceType(GovernanceTypeBuilder<?> expectedGovernanceType, java.lang.Class<S> governanceSourceClass, java.lang.String... propertyNameValues)
Validates theGovernanceType
contained in theGovernanceTypeBuilder
against theGovernanceType
loaded from theGovernanceSource
.static <I,F extends java.lang.Enum<F>,S extends GovernanceSource<I,F>>
PropertyListvalidateSpecification(java.lang.Class<S> governanceSourceClass, java.lang.String... propertyNameLabels)
Validates theGovernanceSourceSpecification
for theGovernanceSource
.
-
-
-
Method Detail
-
validateSpecification
public static <I,F extends java.lang.Enum<F>,S extends GovernanceSource<I,F>> PropertyList validateSpecification(java.lang.Class<S> governanceSourceClass, java.lang.String... propertyNameLabels)
Validates theGovernanceSourceSpecification
for theGovernanceSource
.- Type Parameters:
I
- Extension interface type.F
-Flow
type keys.S
-GovernanceSource
type.- Parameters:
governanceSourceClass
-GovernanceSource
class.propertyNameLabels
- Listing of name/label pairs for theProperty
instances.- Returns:
- Loaded
PropertyList
.
-
createGovernanceTypeBuilder
public static GovernanceTypeBuilder createGovernanceTypeBuilder()
Creates theGovernanceTypeBuilder
to create the expectedGovernanceType
.- Returns:
GovernanceTypeBuilder
.
-
validateGovernanceType
public static <I,F extends java.lang.Enum<F>,S extends GovernanceSource<I,F>> GovernanceType<I,F> validateGovernanceType(GovernanceTypeBuilder<?> expectedGovernanceType, java.lang.Class<S> governanceSourceClass, java.lang.String... propertyNameValues)
Validates theGovernanceType
contained in theGovernanceTypeBuilder
against theGovernanceType
loaded from theGovernanceSource
.- Type Parameters:
I
- Extension interface type.F
-Flow
type keys.S
-GovernanceSource
type.- Parameters:
expectedGovernanceType
- ExpectedGovernanceType
.governanceSourceClass
-GovernanceSource
class.propertyNameValues
- Properties to configure theGovernanceSource
.- Returns:
GovernanceType
loaded from theGovernanceSource
.
-
loadGovernanceType
public static <I,F extends java.lang.Enum<F>,S extends GovernanceSource<I,F>> GovernanceType<I,F> loadGovernanceType(java.lang.Class<S> governanceSourceClass, java.lang.String... propertyNameValues)
Loads theGovernanceType
from theGovernanceSource
.- Type Parameters:
I
- Extension interface type.F
-Flow
type keys.S
-GovernanceSource
type.- Parameters:
governanceSourceClass
-GovernanceSource
class.propertyNameValues
-Property
name/value listing.- Returns:
GovernanceType
.
-
-