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

Bartosz Majsak (JIRA) issues at jboss.org
Fri Jun 27 11:09:25 EDT 2014


     [ https://issues.jboss.org/browse/ARQ-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bartosz Majsak updated ARQ-1332:
--------------------------------

    Fix Version/s: persistence_1.0.0.next


> 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
>             Fix For: persistence_1.0.0.next
>
>
> 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 was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the arquillian-issues mailing list