Package org.jboss.cdi.tck.api
Interface Configuration
public interface Configuration
The configuration of the TCK.
The TCK may be configured using system properties or placed in a properties file called META-INF/cdi-tck.properties.
Porting package property names are the FQCN of the SPI class. Other property names (one for each non-porting package SPI
configuration option) are specified here.
The TCK may also be configured programmatically through this interface.
- Author:
- Pete Muir, Martin Kouba
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetBeans()The implementation ofBeansin use.<T extends jakarta.enterprise.context.spi.Context>
Contexts<T>The implementation ofContextsin use.The implementation ofContextualsin use.The CDI Lite mode setting.The implementation ofCreationalContextsin use.getEl()The implementation ofELin use.The TCK allows additional libraries to be put in the deployed test artifacts (for example the porting package for the implementation).Few TCK tests need to work with Jakarta EE services related to persistence (JPA, JTA) - test datasource must be provided.intAll tests using some timeout technique (e.g.void<T extends jakarta.enterprise.context.spi.Context>
voidsetContexts(Contexts<T> contexts) voidsetContextuals(Contextuals contextuals) voidsetCoreMode(Boolean cdiLiteMode) voidsetCreationalContexts(CreationalContexts creationalContexts) voidvoidsetLibraryDirectory(String libraryDir) voidsetTestDataSource(String testDatasource) voidsetTestJmsConnectionFactory(String testJmsConnectionFactory) voidsetTestJmsQueue(String testJmsQueue) voidsetTestJmsTopic(String testJmsTopic) voidsetTestTimeoutFactor(int timeoutFactor)
-
Field Details
-
CDI_CORE_MODE
- See Also:
-
LIBRARY_DIRECTORY_PROPERTY_NAME
- See Also:
-
TEST_DATASOURCE_PROPERTY_NAME
- See Also:
-
TEST_JMS_CONNECTION_FACTORY
- See Also:
-
TEST_JMS_QUEUE
- See Also:
-
TEST_JMS_TOPIC
- See Also:
-
TEST_TIMEOUT_FACTOR
- See Also:
-
TEST_TIMEOUT_FACTOR_DEFAULT_VALUE
static final int TEST_TIMEOUT_FACTOR_DEFAULT_VALUE- See Also:
-
-
Method Details
-
getCoreMode
Boolean getCoreMode()The CDI Lite mode setting. If enabled, the following settings are ignored and don't have to be provided:- Returns:
- true if running in a CDI Lite environment
-
setCoreMode
-
getBeans
Beans getBeans()The implementation ofBeansin use. -
getContexts
The implementation ofContextsin use. -
getContextuals
Contextuals getContextuals()The implementation ofContextualsin use. -
getCreationalContexts
CreationalContexts getCreationalContexts()The implementation ofCreationalContextsin use. -
getEl
EL getEl()The implementation ofELin use. -
setBeans
-
setContexts
-
setContextuals
-
setCreationalContexts
-
setEl
-
getLibraryDirectory
String getLibraryDirectory()The TCK allows additional libraries to be put in the deployed test artifacts (for example the porting package for the implementation). Any jars in this directory will be added to the deployed artifact. By default no directory is used.- Returns:
- path to additional libraries
-
setLibraryDirectory
-
getTestDataSource
String getTestDataSource()Few TCK tests need to work with Jakarta EE services related to persistence (JPA, JTA) - test datasource must be provided. These tests belong to testng grouppersistence.- Returns:
- the JNDI name of the test datasource
-
setTestDataSource
- Parameters:
testDatasource-
-
getTestJmsConnectionFactory
String getTestJmsConnectionFactory()- Returns:
- the JNDI name of the test JMS connection factory
-
setTestJmsConnectionFactory
- Parameters:
testJmsConnectionFactory-
-
getTestJmsQueue
String getTestJmsQueue()- Returns:
- the JNDI name of the test JMS queue
-
setTestJmsQueue
- Parameters:
testJmsQueue-
-
getTestJmsTopic
String getTestJmsTopic()- Returns:
- the JNDI name of the test JMS topic
-
setTestJmsTopic
- Parameters:
testJmsTopic-
-
getTestTimeoutFactor
int getTestTimeoutFactor()All tests using some timeout technique (e.g. wait for async processing) should use this value to adjust the final timeout so that it's possible to configure timeouts according to the testing runtime performance and throughput.- Returns:
- the test timeout factor (in percent)
-
setTestTimeoutFactor
void setTestTimeoutFactor(int timeoutFactor) - Parameters:
timeoutFactor-
-