[jboss-jira] [JBoss JIRA] (WFLY-7671) Test DeploymentDescriptorTestCase Not Handling Own Clean Up

Darran Lofthouse (JIRA) issues at jboss.org
Thu Nov 24 11:54:00 EST 2016


Darran Lofthouse created WFLY-7671:
--------------------------------------

             Summary: Test DeploymentDescriptorTestCase Not Handling Own Clean Up
                 Key: WFLY-7671
                 URL: https://issues.jboss.org/browse/WFLY-7671
             Project: WildFly
          Issue Type: Bug
          Components: Batch, Test Suite
            Reporter: Darran Lofthouse
            Assignee: James Perkins
             Fix For: 11.0.0.Alpha1


The test DeploymentDescriptorTestCase appears to be assuming it will only be run after 'mvn clean'.

If I run the test manually I get the failure: -

{noformat}
Running org.jboss.as.test.integration.batch.deployment.DeploymentDescriptorTestCase
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.763 sec <<< FAILURE! - in org.jboss.as.test.integration.batch.deployment.DeploymentDescriptorTestCase
namedJdbcTest(org.jboss.as.test.integration.batch.deployment.DeploymentDescriptorTestCase)  Time elapsed: 0.127 sec  <<< FAILURE!
java.lang.AssertionError: expected:<1> but was:<6>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.jboss.as.test.integration.batch.deployment.DeploymentDescriptorTestCase.testCompletion(DeploymentDescriptorTestCase.java:127)
	at org.jboss.as.test.integration.batch.deployment.DeploymentDescriptorTestCase.namedJdbcTest(DeploymentDescriptorTestCase.java:115)
{noformat}

Next time I run it I get: -

{noformat}
Running org.jboss.as.test.integration.batch.deployment.DeploymentDescriptorTestCase
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.986 sec <<< FAILURE! - in org.jboss.as.test.integration.batch.deployment.DeploymentDescriptorTestCase
namedJdbcTest(org.jboss.as.test.integration.batch.deployment.DeploymentDescriptorTestCase)  Time elapsed: 0.129 sec  <<< FAILURE!
java.lang.AssertionError: expected:<1> but was:<7>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.jboss.as.test.integration.batch.deployment.DeploymentDescriptorTestCase.testCompletion(DeploymentDescriptorTestCase.java:127)
	at org.jboss.as.test.integration.batch.deployment.DeploymentDescriptorTestCase.namedJdbcTest(DeploymentDescriptorTestCase.java:115)
{noformat}

So the execution IDs are not getting set back to 0 before the test starts.




--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list