[arquillian-issues] [JBoss JIRA] (ARQ-332) Add support for injectable configuration options

John Ament (JIRA) issues at jboss.org
Fri Jan 3 14:28:32 EST 2014


    [ https://issues.jboss.org/browse/ARQ-332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933654#comment-12933654 ] 

John Ament commented on ARQ-332:
--------------------------------

I've essentially dealt with this by reading system properties specified in the test.  The XML structure of arquillian.xml has changed dramatically though, so I don't know if what I had in here is even relevant any longer.
                
> Add support for injectable configuration options
> ------------------------------------------------
>
>                 Key: ARQ-332
>                 URL: https://issues.jboss.org/browse/ARQ-332
>             Project: Arquillian
>          Issue Type: Feature Request
>          Components: Configuration
>         Environment: All
>            Reporter: John Ament
>            Priority: Minor
>
> I may have more of a unique situation here, not sure, but I figure something like this would be useful to a lot of people.  In my case, I have to test my application against multiple RDBMSs.  Amongst the test cases I need to execute, the only deltas between them is really the orm.xml and persistence.xml for JPA, since we override the configuration.  Currently, arquillian requires me to point to the files in my test cases.  Granted, I could use a static string to manage them, but I was wondering if arquillian could provide something like this in arquillian.xml
> <?xml version="1.0"?>
> <arquillian xmlns="http://jboss.com/arquillian"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xmlns:glassfish="urn:arq:org.jboss.arquillian.container.glassfish.embedded_3">
> 	<glassfish:container>
> 		<glassfish:sunResourcesXml>src/test/resources/sun-resources-mysql.xml</glassfish:sunResourcesXml>
> 	</glassfish:container>
>         <properties>
>             <property name="orm-xml" value="src/test/resources/orm-mysql.xml"/>
>             <property name="persistence-xml" value="src/test/resources/pers-mysql.xml"/>
>         </properties>
> </arquillian>
> And then in the test case itself
> @Inject ArquillianConfiguration config;
> config.getProperty("orm-xml");
> in order to access the property.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list