From: <st...@us...> - 2007-07-26 16:36:05
|
Revision: 4814 http://smartfrog.svn.sourceforge.net/smartfrog/?rev=4814&view=rev Author: steve_l Date: 2007-07-26 09:35:53 -0700 (Thu, 26 Jul 2007) Log Message: ----------- SFOS-320 migrate org.smartfrog.test.system.workflow.parallel.ParallelAsyncTest to async tests Modified Paths: -------------- trunk/core/testharness/testcases/org/smartfrog/test/system/workflow/parallel/ParallelAsyncTest.java Modified: trunk/core/testharness/testcases/org/smartfrog/test/system/workflow/parallel/ParallelAsyncTest.java =================================================================== --- trunk/core/testharness/testcases/org/smartfrog/test/system/workflow/parallel/ParallelAsyncTest.java 2007-07-26 16:31:35 UTC (rev 4813) +++ trunk/core/testharness/testcases/org/smartfrog/test/system/workflow/parallel/ParallelAsyncTest.java 2007-07-26 16:35:53 UTC (rev 4814) @@ -44,44 +44,30 @@ } - private void expectSuccesfulTermAndToggle() throws Throwable { - expectSuccessfulTermination(block); + private void expectValueToggled() throws Throwable { assertAttributeEquals(application, "value", true); } public void testStartFailingParallelNoTerminateAsync() throws Throwable { - application = deployExpectingSuccess(FILES + "testStartFailingParallelNoTerminateAsync.sf", - "testStartFailingParallelNoTerminateAsync"); - block = (TestBlock) application; - expectSuccesfulTermAndToggle(); + expectSuccessfulTestRun(FILES, "testStartFailingParallelNoTerminateAsync"); + expectValueToggled(); } public void testStartFailingParallelAsync() throws Throwable { - application = deployExpectingSuccess(FILES + "testStartFailingParallelAsync.sf", - "testStartFailingParallelAsync"); - block = (TestBlock) application; - expectAbnormalTermination(block); + expectAbnormalTestRun(FILES, "testStartFailingParallelAsync", true, null); } public void testStartFailingParallelAsyncNoChild() throws Throwable { - application = deployExpectingSuccess(FILES + "testStartFailingParallelAsyncNoChild.sf", - "testStartFailingParallelAsyncNoChild"); - block = (TestBlock) application; - expectAbnormalTermination(block); + expectAbnormalTestRun(FILES, "testStartFailingParallelAsyncNoChild", true, null); } public void testFailingParallelAsync() throws Throwable { - application = deployExpectingSuccess(FILES + "testFailingParallelAsync.sf", - "testFailingParallelAsync"); - block = (TestBlock) application; - expectAbnormalTermination(block); + expectAbnormalTestRun(FILES, "testFailingParallelAsync", true, null); } public void testFailingParallelAsyncNoChild() throws Throwable { - application = deployExpectingSuccess(FILES + "testFailingParallelAsyncNoChild.sf", - "testFailingParallelAsyncNoChild"); - setBlock(application); - expectSuccesfulTermAndToggle(); + expectSuccessfulTestRun(FILES, "testFailingParallelAsyncNoChild"); + expectValueToggled(); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |