[arquillian-issues] [JBoss JIRA] (ARQ-712) Arquillian tries to undeploy deployment which fails during deploying
Aslak Knutsen (Commented) (JIRA)
jira-events at lists.jboss.org
Thu Dec 22 13:52:09 EST 2011
[ https://issues.jboss.org/browse/ARQ-712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652885#comment-12652885 ]
Aslak Knutsen commented on ARQ-712:
-----------------------------------
The reason is even tho there is a exception during deploy it doesn't necessarily mean there is nothing to clean up, so it will attempt to undeploy in case..
-aslak-
> 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
More information about the arquillian-issues
mailing list