Package com.ibm.jbatch.tck.tests.jslxml
Class PartitionRerunTests
- java.lang.Object
-
- com.ibm.jbatch.tck.tests.jslxml.PartitionRerunTests
-
public class PartitionRerunTests extends Object
-
-
Constructor Summary
Constructors Constructor Description PartitionRerunTests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterTest()
void
beforeTest()
void
cleanup()
void
setup(String[] args, Properties props)
void
testRerunPartitionAndBatchlet()
-
-
-
Method Detail
-
setup
public void setup(String[] args, Properties props) throws Exception
- Throws:
Exception
-
cleanup
public void cleanup()
-
beforeTest
public void beforeTest() throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
afterTest
public void afterTest()
-
testRerunPartitionAndBatchlet
@TCKTest(versions="1.1.WORKING",assertions={"Upon job restart, only FAILED partitions of a FAILED partitioned step are re-executed (COMPLETED partitions are not re-executed).","Upon job restart, all partitions of a COMPLETED partitioned step with allow-start-if-complete=true are re-executed."},specRefs={@SpecRef(version="1.0",section="8.2",citations="allow-start-if-complete: Specifies whether this step is allowed to start during job restart, even if the step completed in a previous execution."),@SpecRef(version="1.0",section="10.8.4",citations="if the step is a partitioned step, only the partitions that did not complete previously are restarted.",notes="See 3.c.")},issueRefs="https://java.net/bugzilla/show_bug.cgi?id=6494",strategy="In the first job execution, the test fails in one partition and passes in the other two while running through step1. In the second execution, check that only the failed partition in step1 is re-executed; complete step1 and then fail in step2. In the third execution, since step1 has previously completed and allow-start-if-complete=true, we verify that all three partitions in step1 are re-executed.",notes="The spec doesn\'t explicitly describe this combination of partitions plus allow-start-if-complete=\"true\", but it seems the only valid interpretation.") public void testRerunPartitionAndBatchlet() throws Exception
- Throws:
Exception
-
-