[arquillian-issues] [JBoss JIRA] (ARQ-1077) Persistence Plugin does not work with Drone/Graphene
Aslak Knutsen (JIRA)
jira-events at lists.jboss.org
Wed Aug 22 05:55:15 EDT 2012
[ https://issues.jboss.org/browse/ARQ-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712939#comment-12712939 ]
Aslak Knutsen edited comment on ARQ-1077 at 8/22/12 5:55 AM:
-------------------------------------------------------------
You would probably need one 'empty' in-container @Test method to trigger the APE extension in container before doing the Client call.
{code}
@Test @InSequence(1)
public void setupDatabase() {}
@Test @InSequence(2) @RunAsClient
public void dronTest() {}
{code}
Tho I suspect @UsingDataSet is only implemented to work on all in container Test methods individually, so the data will be cleaned up after the first TestMethod
And deploying a TestClass with Drone/Selenium dependencies will most likely trigger a ClassNotFoundException when executed in container since Selenium is not by default added to the deployment.
was (Author: aslak):
You would probably need one 'empty' in-container @Test method to trigger the APE extension in container before doing the Client call.
{code}
@Test @InSequence(1)
public void setupDatabase() {}
@Test @InSequence(2) @RunAsClient
public void dronTest() {}
{code}
Tho I suspect @UsingDataSet is only implemented to work on all in container Test methods individually, so the data will be cleaned up after the first TestMethod
> Persistence Plugin does not work with Drone/Graphene
> ----------------------------------------------------
>
> Key: ARQ-1077
> URL: https://issues.jboss.org/browse/ARQ-1077
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Drone, Extension - Persistence
> Environment: JBoss AS 7 Container
> Reporter: Bryan Saunders
> Labels: drone, persistence
>
> Persistence Extension does not execute when being used with the Drone/Graphene extensions. When you run the tests in Client Mode the @UsingDataSet annotations do not trigger and populate the database. @ApplyScriptBefore also does not work.
--
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
More information about the arquillian-issues
mailing list