fixing a testcase
Project: http://git-wip-us.apache.org/repos/asf/ode/repo Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/5847e264 Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/5847e264 Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/5847e264 Branch: refs/heads/master Commit: 5847e26488f35d112c189fb23916974e15fea58a Parents: 5236cb8 Author: Tammo van Lessen <[email protected]> Authored: Tue May 14 03:40:56 2013 +0200 Committer: Tammo van Lessen <[email protected]> Committed: Tue May 14 03:40:56 2013 +0200 ---------------------------------------------------------------------- .../org/apache/ode/test/VersionedRedeployTest.java | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ode/blob/5847e264/bpel-test/src/test/java/org/apache/ode/test/VersionedRedeployTest.java ---------------------------------------------------------------------- diff --git a/bpel-test/src/test/java/org/apache/ode/test/VersionedRedeployTest.java b/bpel-test/src/test/java/org/apache/ode/test/VersionedRedeployTest.java index 00cd806..c8b71bd 100644 --- a/bpel-test/src/test/java/org/apache/ode/test/VersionedRedeployTest.java +++ b/bpel-test/src/test/java/org/apache/ode/test/VersionedRedeployTest.java @@ -62,15 +62,17 @@ public class VersionedRedeployTest extends BPELTestAbstract { @Test public void testInstancePersistence() throws Throwable { // Checking for each step that all instances still exist and that each process got one execution // so no instance has been created after a process has been retired. + int reference = _cf.getConnection().getProcess(qName1).getNumInstances(); + go("/bpel/2.0/TestVersionedRedeploy/HelloWorld-1"); - Assert.assertEquals(1, _cf.getConnection().getProcess(qName1).getNumInstances()); + Assert.assertEquals(reference + 1, _cf.getConnection().getProcess(qName1).getNumInstances()); // clean up deployment and invocations _deployments.clear(); _invocations.clear(); go("/bpel/2.0/TestVersionedRedeploy/HelloWorld-2"); - Assert.assertEquals(1, _cf.getConnection().getProcess(qName1).getNumInstances()); + Assert.assertEquals(reference + 1, _cf.getConnection().getProcess(qName1).getNumInstances()); Assert.assertEquals(1, _cf.getConnection().getProcess(qName2).getNumInstances()); // clean up deployment and invocations @@ -78,7 +80,7 @@ public class VersionedRedeployTest extends BPELTestAbstract { _invocations.clear(); go("/bpel/2.0/TestVersionedRedeploy/HelloWorld-3"); - Assert.assertEquals(1, _cf.getConnection().getProcess(qName1).getNumInstances()); + Assert.assertEquals(reference + 1, _cf.getConnection().getProcess(qName1).getNumInstances()); Assert.assertEquals(1, _cf.getConnection().getProcess(qName2).getNumInstances()); Assert.assertEquals(1, _cf.getConnection().getProcess(qName3).getNumInstances()); }
