[
https://issues.jboss.org/browse/ARQ-712?page=com.atlassian.jira.plugin.sy...
]
Pavel Janousek commented on ARQ-712:
------------------------------------
Aslak, good meaningful point.
Anyway - I'm wondering if there is any possibility to recognize this case (failed
deployment) from other common exceptions (that don't break deployment itself). I was
confused when saw this error message in LOG and though I had had some logical error in my
code.
Arquillian tries to undeploy deployment which fails during
deploying
----------------------------------------------------------------------
Key: ARQ-712
URL:
https://issues.jboss.org/browse/ARQ-712
Project: Arquillian
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 1.0.0.CR6
Reporter: Pavel Janousek
How to reproduce:
{code}
@Deployment(name = "dep_fail", managed = false)
public static Archive<?> deploy_fail() {
// return some deployment which can't be deployed = error produced
}
@ArquillianResource private Deployer deployer;
@Test
@RunAsClient
public void testDeploy() throws Exception {
boolean fail = false;
try {
deployer.deploy("dep_fail"); // Exception raised HERE
} catch (Exception e) {
fail = true;
}
if (!fail) {
// Some tests
try {
deployer.undeploy("dep_false");
} catch (Exception e) {
}
}
}
{code}
Although deploy() ends with logged exception when deployment of _dep_fail_ fails - ARQ
tries to undeploy this artifact from AS7 server when end of testDeploy() reached.
--
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