@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ResinBeanConfiguration
Creates a Resin bean container custom configuration for a given JUnit test.
If no beans.xml files are specified, the default META-INF/beans.xml will be loaded. If one or more beans.xml files are specified, the default beans.xml file will be ignored. An array of beans.xml files may be specified. Multiple beans.xml are combined together to create the final test configuration.
If no persistence.xml file is specified, the default persistence.xml will be loaded. If a persistence.xml file is specified, the default file will be ignored in favor of the specified JPA configuration.
Unless otherwise specified, files are loaded from the class-path. You can explicitly specify that a file is loaded from the class-path by using the 'classpath:' prefix (e.g. classpath:META-INF/beans.xml). You may specify that a file is loaded from the file-system using the 'file:' prefix (e.g. file:web/WEB-INF/beans.xml). Note that you can use either absolute or relative file paths (e.g. file:web/WEB-INF/beans.xml or file:/workspace/projectabc/tests/test123/web/WEB-INF/beans.xml).
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String[] |
beansXml |
java.lang.String[] |
classPath
Specifies .jar files and directories with classes to add dynamically to
classpath.
|
java.lang.String |
persistenceXml |