Package de.cuioss.test.jsf.junit5
Class AbstractPropertyAwareFacesTest<T>
- java.lang.Object
-
- de.cuioss.test.jsf.junit5.JsfEnabledTestEnvironment
-
- de.cuioss.test.jsf.junit5.AbstractPropertyAwareFacesTest<T>
-
- Type Parameters:
T- identifying the concrete type to be tested
- All Implemented Interfaces:
JsfEnvironmentConsumer,de.cuioss.test.valueobjects.objects.ConfigurationCallBackHandler<T>,de.cuioss.test.valueobjects.util.GeneratorRegistry
- Direct Known Subclasses:
AbstractBeanTest
@EnableGeneratorRegistry public abstract class AbstractPropertyAwareFacesTest<T> extends JsfEnabledTestEnvironment implements de.cuioss.test.valueobjects.objects.ConfigurationCallBackHandler<T>, de.cuioss.test.valueobjects.util.GeneratorRegistry
Extension toJsfEnabledTestEnvironmentthat is capable of dealing with properties and generator likeValueObjectTest.Supported Contracts / Configurations
- Faces Mock configuration as defined within
EnableJsfEnvironment - Handling of Property Generators using annotations, see
de.cuioss.test.valueobjects.api.generator - Reflection and annotation based property handling, see
de.cuioss.test.valueobjects.api.property - EnableGeneratorController
In case the actual test-class implements
TypedGeneratoritself it will implicitly registered asTypedGeneratoratTypedGeneratorRegistry- Author:
- Oliver Wolff
-
-
Constructor Summary
Constructors Constructor Description AbstractPropertyAwareFacesTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<de.cuioss.test.valueobjects.property.PropertyMetadata>getPropertyMetadata()Class<T>getTargetBeanClass()voidinitializeAbstractPropertyAwareFacesTest()Initializes all contracts, properties and generatorprotected List<de.cuioss.test.valueobjects.property.PropertyMetadata>resolvePropertyMetadata()Resolves thePropertyMetadataby using reflections and the annotationsPropertyConfigand /PropertyConfigsif provided-
Methods inherited from class de.cuioss.test.jsf.junit5.JsfEnabledTestEnvironment
getEnvironmentHolder, setEnvironmentHolder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.cuioss.test.valueobjects.objects.ConfigurationCallBackHandler
configure
-
Methods inherited from interface de.cuioss.test.valueobjects.util.GeneratorRegistry
registerAdditionalGenerators
-
Methods inherited from interface de.cuioss.test.jsf.util.JsfEnvironmentConsumer
assertNavigatedWithOutcome, assertRedirect, getApplication, getApplicationConfigDecorator, getBeanConfigDecorator, getComponentConfigDecorator, getExternalContext, getFacesContext, getRequestConfigDecorator, getResponse
-
-
-
-
Constructor Detail
-
AbstractPropertyAwareFacesTest
public AbstractPropertyAwareFacesTest()
-
-
Method Detail
-
initializeAbstractPropertyAwareFacesTest
@BeforeEach public void initializeAbstractPropertyAwareFacesTest()
Initializes all contracts, properties and generator
-
resolvePropertyMetadata
protected List<de.cuioss.test.valueobjects.property.PropertyMetadata> resolvePropertyMetadata()
Resolves thePropertyMetadataby using reflections and the annotationsPropertyConfigand /PropertyConfigsif provided- Returns:
- a
SortedSetofPropertyMetadatadefining the base line for the configured attributes
-
getTargetBeanClass
public Class<T> getTargetBeanClass()
-
getPropertyMetadata
public List<de.cuioss.test.valueobjects.property.PropertyMetadata> getPropertyMetadata()
-
-