[arquillian-issues] [JBoss JIRA] (ARQ-1332) Should be able to script data in the data sets

Bernard Labno (JIRA) jira-events at lists.jboss.org
Wed Jul 31 13:45:29 EDT 2013


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

Bernard Labno commented on ARQ-1332:
------------------------------------

It's great that in dataset we can have "[null]" expression. It would be very handy to have also "[not null]" in expected dataset to make assertions against dates.
                
> Should be able to script data in the data sets
> ----------------------------------------------
>
>                 Key: ARQ-1332
>                 URL: https://issues.jboss.org/browse/ARQ-1332
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Persistence
>            Reporter: Bartosz Majsak
>            Assignee: Bartosz Majsak
>
> The DataSet represents a collection of tables (rows) used to seed the database. However it's static nature is not sufficient in many cases. Imagine testing time sensitive data. It could be really handy to have possibility of defining date as "three days from today" or having current time by simply invoking "now()" function. With the power of a scripting language at your disposal it should be achieved very easy.
>  
> The goal of this project is to extend the Arquillian Persistence Extension usage of DBUnit and introduce the concept ScriptableDataSet. By leveraging "Scripting for the Java Platform" (JSR 223) introduced in JDK 6 we can use plethora of languages to add dynamic flavor to our data driven tests.
> Supporting a script location (and perhaps even a function in that script file) might be a nice addition as well. That externalizes the code and allows for reuse.
> As a starting point groovy can be considered.

--
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