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 programatically through this interface.- Author:
- Pete Muir, Martin Kouba
-
-
Field Summary
Fields Modifier and Type Field Description static String
CDI_LITE_MODE
static String
LIBRARY_DIRECTORY_PROPERTY_NAME
static String
TEST_DATASOURCE_PROPERTY_NAME
static String
TEST_JMS_CONNECTION_FACTORY
static String
TEST_JMS_QUEUE
static String
TEST_JMS_TOPIC
static String
TEST_TIMEOUT_FACTOR
static int
TEST_TIMEOUT_FACTOR_DEFAULT_VALUE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Beans
getBeans()
The implementation ofBeans
in use.Boolean
getCdiLiteMode()
The CDI Lite mode setting.<T extends jakarta.enterprise.context.spi.Context>
Contexts<T>getContexts()
The implementation ofContexts
in use.EL
getEl()
The implementation ofEL
in use.String
getLibraryDirectory()
The TCK allows additional libraries to be put in the deployed test artifacts (for example the porting package for the implementation).String
getTestDataSource()
Few TCK tests need to work with Java EE services related to persistence (JPA, JTA) - test datasource must be provided.String
getTestJmsConnectionFactory()
String
getTestJmsQueue()
String
getTestJmsTopic()
int
getTestTimeoutFactor()
All tests using some timeout technique (e.g.void
setBeans(Beans beans)
void
setCdiLiteMode(Boolean cdiLiteMode)
<T extends jakarta.enterprise.context.spi.Context>
voidsetContexts(Contexts<T> contexts)
void
setEl(EL el)
void
setLibraryDirectory(String libraryDir)
void
setTestDataSource(String testDatasource)
void
setTestJmsConnectionFactory(String testJmsConnectionFactory)
void
setTestJmsQueue(String testJmsQueue)
void
setTestJmsTopic(String testJmsTopic)
void
setTestTimeoutFactor(int timeoutFactor)
-
-
-
Field Detail
-
CDI_LITE_MODE
static final String CDI_LITE_MODE
- See Also:
- Constant Field Values
-
LIBRARY_DIRECTORY_PROPERTY_NAME
static final String LIBRARY_DIRECTORY_PROPERTY_NAME
- See Also:
- Constant Field Values
-
TEST_DATASOURCE_PROPERTY_NAME
static final String TEST_DATASOURCE_PROPERTY_NAME
- See Also:
- Constant Field Values
-
TEST_JMS_CONNECTION_FACTORY
static final String TEST_JMS_CONNECTION_FACTORY
- See Also:
- Constant Field Values
-
TEST_JMS_QUEUE
static final String TEST_JMS_QUEUE
- See Also:
- Constant Field Values
-
TEST_JMS_TOPIC
static final String TEST_JMS_TOPIC
- See Also:
- Constant Field Values
-
TEST_TIMEOUT_FACTOR
static final String TEST_TIMEOUT_FACTOR
- See Also:
- Constant Field Values
-
TEST_TIMEOUT_FACTOR_DEFAULT_VALUE
static final int TEST_TIMEOUT_FACTOR_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCdiLiteMode
Boolean getCdiLiteMode()
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
-
setCdiLiteMode
void setCdiLiteMode(Boolean cdiLiteMode)
-
getContexts
<T extends jakarta.enterprise.context.spi.Context> Contexts<T> getContexts()
The implementation ofContexts
in use.
-
setBeans
void setBeans(Beans beans)
-
setContexts
<T extends jakarta.enterprise.context.spi.Context> void setContexts(Contexts<T> contexts)
-
setEl
void setEl(EL el)
-
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
void setLibraryDirectory(String libraryDir)
-
getTestDataSource
String getTestDataSource()
Few TCK tests need to work with Java 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
void setTestDataSource(String testDatasource)
- Parameters:
testDatasource
-
-
getTestJmsConnectionFactory
String getTestJmsConnectionFactory()
- Returns:
- the JNDI name of the test JMS connection factory
-
setTestJmsConnectionFactory
void setTestJmsConnectionFactory(String testJmsConnectionFactory)
- Parameters:
testJmsConnectionFactory
-
-
getTestJmsQueue
String getTestJmsQueue()
- Returns:
- the JNDI name of the test JMS queue
-
setTestJmsQueue
void setTestJmsQueue(String testJmsQueue)
- Parameters:
testJmsQueue
-
-
getTestJmsTopic
String getTestJmsTopic()
- Returns:
- the JNDI name of the test JMS topic
-
setTestJmsTopic
void setTestJmsTopic(String testJmsTopic)
- 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
-
-
-