[arquillian-issues] [JBoss JIRA] (ARQ-1779) Test are not executed using combinations of @ApplyScriptBefore / @ApplyScriptAfter
Thomas Küstermann (JIRA)
issues at jboss.org
Mon May 19 05:32:57 EDT 2014
Thomas Küstermann created ARQ-1779:
--------------------------------------
Summary: Test are not executed using combinations of @ApplyScriptBefore / @ApplyScriptAfter
Key: ARQ-1779
URL: https://issues.jboss.org/browse/ARQ-1779
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Extension - Persistence
Affects Versions: persistence_1.0.0.Alpha7
Reporter: Thomas Küstermann
Assignee: Bartosz Majsak
Forum reference: https://community.jboss.org/message/874117
The following test case succeeds (green bar) although it should fail:
{code:java}
@RunWith(Arquillian.class)
@DataSource("java:oracleDS")
@Cleanup(phase=TestExecutionPhase.NONE)
@ApplyScriptBefore("deploy-db-functionality.sql")
@ApplyScriptAfter("undeploy-db-functionality.sql")
public class PersistenceIT {
// @Deployment ...
@Test
@ApplyScriptBefore("trigger-db-functionality.sql")
public void shouldFail() {
Assert.fail("should fail, but doesn't");
}
}
{code}
Removing class level annotations does not work either:
{code:java}
@Test
@ApplyScriptBefore({ "deploy-db-functionality.sql", "trigger-db-functionality.sql" })
@ApplyScriptAfter("undeploy-db-functionality.sql")
public void shouldFail() { ... }
{code}
What actually works is to use only one ApplyScriptBefore / ApplyScriptAfter annotation per test, each with only one script to execute.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the arquillian-issues
mailing list