[
https://issues.jboss.org/browse/ARQ-718?page=com.atlassian.jira.plugin.sy...
]
Bartosz Majsak updated ARQ-718:
-------------------------------
Description:
There is a need for exposing customization features of DBUnit used for seeding underlying
database (such as those available in org.dbunit.database.DatabaseConfig).
One possible solution would be to use arquillian.xml with dedicated qualifier such as
"persistence-dbunit" and handle it in the same fashion as currently available
properties for the extension (preferably in dbunit package):
* Create configuration class similar to
[
PersistenceConfiguration|https://github.com/arquillian/arquillian-extensi...]
* Make
[
ConfigurationImporter|https://github.com/arquillian/arquillian-extension-...]
and
[
ConfigurationExporter|https://github.com/arquillian/arquillian-extension-...]
generic to work for currently existing configuration and newly created DBUnit specific.
* Introduce DBUnitConfiguration producer similar to
[
PersistenceConfigurationProducer|https://github.com/arquillian/arquillian...].
* Serialize new properties in
[
PersistenceExtensionArchiveAppender|https://github.com/arquillian/arquill...]
(same as for general properties)
* Introduce remote producer (which deserialize deployed property file and make it
available on the server side) similar to
[
RemotePersistenceConfigurationProducer|https://github.com/arquillian/arqu...]
* Configuration object then might be injected and used for customizing DBUnit connection
in
[
DBUnitPersistenceTestLifecycleHandler|https://github.com/arquillian/arqui...]
Additionaly there should be a way (most likely annotation based) to define / override some
settings on a test besis (e.g. column filtering).
was:
There is a need for exposing customization features of DBUnit used for seeding underlying
database (such as those available in org.dbunit.database.DatabaseConfig).
One possible solution would be to use arquillian.xml with dedicated qualifier such as
"persistence-dbunit" and handle it in the same fashion as currently available
properties for the extension (preferably in dbunit package):
* Create configuration class similar to
[
PersistenceConfiguration|https://github.com/arquillian/arquillian-extensi...]
* Make
[
ConfigurationImporter|https://github.com/arquillian/arquillian-extension-...]
and
[
ConfigurationExporter|https://github.com/arquillian/arquillian-extension-...]
generic to work for currently existing configuration and newly created DBUnit specific.
* Introduce DBUnitConfiguration producer similar to
[
PersistenceConfigurationProducer|https://github.com/arquillian/arquillian...].
* Serialize new properties in
[
PersistenceExtensionArchiveAppender|https://github.com/arquillian/arquill...]
(same as for general properties)
* Introduce remote producer (which deserialize deployed property file and make it
available on the server side) similar to
[
RemotePersistenceConfigurationProducer|https://github.com/arquillian/arqu...]
* Configuration object then might be injected and used for customizing DBUnit connection
in
[
DBUnitPersistenceTestLifecycleHandler|https://github.com/arquillian/arqui...]
Customization for DBUnit
------------------------
Key: ARQ-718
URL:
https://issues.jboss.org/browse/ARQ-718
Project: Arquillian
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Extension - Persistence
Affects Versions: persistence_1.0.0.Alpha3
Reporter: Bartosz Majsak
Assignee: Bartosz Majsak
Fix For: persistence_1.0.0.next
There is a need for exposing customization features of DBUnit used for seeding underlying
database (such as those available in org.dbunit.database.DatabaseConfig).
One possible solution would be to use arquillian.xml with dedicated qualifier such as
"persistence-dbunit" and handle it in the same fashion as currently available
properties for the extension (preferably in dbunit package):
* Create configuration class similar to
[
PersistenceConfiguration|https://github.com/arquillian/arquillian-extensi...]
* Make
[
ConfigurationImporter|https://github.com/arquillian/arquillian-extension-...]
and
[
ConfigurationExporter|https://github.com/arquillian/arquillian-extension-...]
generic to work for currently existing configuration and newly created DBUnit specific.
* Introduce DBUnitConfiguration producer similar to
[
PersistenceConfigurationProducer|https://github.com/arquillian/arquillian...].
* Serialize new properties in
[
PersistenceExtensionArchiveAppender|https://github.com/arquillian/arquill...]
(same as for general properties)
* Introduce remote producer (which deserialize deployed property file and make it
available on the server side) similar to
[
RemotePersistenceConfigurationProducer|https://github.com/arquillian/arqu...]
* Configuration object then might be injected and used for customizing DBUnit connection
in
[
DBUnitPersistenceTestLifecycleHandler|https://github.com/arquillian/arqui...]
Additionaly there should be a way (most likely annotation based) to define / override
some settings on a test besis (e.g. column filtering).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira