diff --git a/batch/batch-listeners/src/test/java/org/javaee7/batch/batch/listeners/BatchListenersTest.java b/batch/batch-listeners/src/test/java/org/javaee7/batch/batch/listeners/BatchListenersTest.java index 0f4606b59..3a607a80a 100644 --- a/batch/batch-listeners/src/test/java/org/javaee7/batch/batch/listeners/BatchListenersTest.java +++ b/batch/batch-listeners/src/test/java/org/javaee7/batch/batch/listeners/BatchListenersTest.java @@ -103,8 +103,8 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query the +Metric[]+ object available in the step execution and also verify if the - * listeners were executed correctly via a +CountDownLatch+ wait. + * expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution and + * also verify if the listeners were executed correctly via a +CountDownLatch+ wait. * * The batch process itself will read and process 10 elements from numbers 1 to 10, but only write the odd * elements. diff --git a/batch/batchlet-simple/src/test/java/org/javaee7/batch/batchlet/simple/MyBatchletTest.java b/batch/batchlet-simple/src/test/java/org/javaee7/batch/batchlet/simple/MyBatchletTest.java index e9040038e..3625e7a0d 100644 --- a/batch/batchlet-simple/src/test/java/org/javaee7/batch/batchlet/simple/MyBatchletTest.java +++ b/batch/batchlet-simple/src/test/java/org/javaee7/batch/batchlet/simple/MyBatchletTest.java @@ -62,8 +62,8 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we just need to check the Batch Status in the +JbExecution+ object. We should get a - * +BatchStatus.COMPLETED+. + * expected behaviour we just need to check the Batch Status in the +javax.batch.runtime.JobExecution+ object. We + * should get a +javax.batch.runtime.BatchStatus.COMPLETED+. * * @throws Exception an exception if the batch could not complete successfully. */ diff --git a/batch/chunk-checkpoint/src/test/java/org/javaee7/batch/chunk/checkpoint/BatchChunkCheckpointTest.java b/batch/chunk-checkpoint/src/test/java/org/javaee7/batch/chunk/checkpoint/BatchChunkCheckpointTest.java index 118922a15..c5e427110 100644 --- a/batch/chunk-checkpoint/src/test/java/org/javaee7/batch/chunk/checkpoint/BatchChunkCheckpointTest.java +++ b/batch/chunk-checkpoint/src/test/java/org/javaee7/batch/chunk/checkpoint/BatchChunkCheckpointTest.java @@ -70,7 +70,7 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query the +Metric[]+ object available in the step execution. + * expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution. * * The batch process itself will read and process 10 elements from numbers 1 to 10, but only write the odd * elements. Commits are executed after 5 elements are read by the custom checkpoint algorithm. diff --git a/batch/chunk-csv-database/src/test/java/org/javaee7/batch/chunk/csv/database/BatchCSVDatabaseTest.java b/batch/chunk-csv-database/src/test/java/org/javaee7/batch/chunk/csv/database/BatchCSVDatabaseTest.java index b363d7ab9..f74739a72 100644 --- a/batch/chunk-csv-database/src/test/java/org/javaee7/batch/chunk/csv/database/BatchCSVDatabaseTest.java +++ b/batch/chunk-csv-database/src/test/java/org/javaee7/batch/chunk/csv/database/BatchCSVDatabaseTest.java @@ -83,7 +83,7 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query the +Metric[]+ object available in the step execution. + * expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution. * * The batch process itself will read and write 7 elements of type +Person+. Commits are executed after 3 elements * are read. diff --git a/batch/chunk-exception/src/test/java/org/javaee7/batch/chunk/exception/BatchChunkExceptionTest.java b/batch/chunk-exception/src/test/java/org/javaee7/batch/chunk/exception/BatchChunkExceptionTest.java index 7c24f570e..cedfb5f55 100644 --- a/batch/chunk-exception/src/test/java/org/javaee7/batch/chunk/exception/BatchChunkExceptionTest.java +++ b/batch/chunk-exception/src/test/java/org/javaee7/batch/chunk/exception/BatchChunkExceptionTest.java @@ -57,6 +57,15 @@ * * +MyRetryProcessorListener+ * * +MyRetryWriteListener+ * + * Events can be caught via extending the following classes, for the appropriate batch lifecycle event: + * + * * +javax.batch.api.chunk.listener.SkipReadListener+ + * * +javax.batch.api.chunk.listener.SkipProcessListener+ + * * +javax.batch.api.chunk.listener.SkipWriteListener+ + * * +javax.batch.api.chunk.listener.RetryReadListener+ + * * +javax.batch.api.chunk.listener.RetryProcessListener+ + * * +javax.batch.api.chunk.listener.RetryWriteListener+ + * * include::myJob.xml[] * * A very simple job is defined in the +myJob.xml+ file. Just a single step with a reader, a processor and a writer. For @@ -93,7 +102,7 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query the +Metric[]+ object available in the step execution. + * expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution. * * @throws Exception an exception if the batch could not complete successfully. */ diff --git a/batch/chunk-mapper/src/test/java/org/javaee7/batch/sample/chunk/mapper/BatchChunkMapperTest.java b/batch/chunk-mapper/src/test/java/org/javaee7/batch/sample/chunk/mapper/BatchChunkMapperTest.java index 0a66811b8..23ab5d7fa 100644 --- a/batch/chunk-mapper/src/test/java/org/javaee7/batch/sample/chunk/mapper/BatchChunkMapperTest.java +++ b/batch/chunk-mapper/src/test/java/org/javaee7/batch/sample/chunk/mapper/BatchChunkMapperTest.java @@ -77,7 +77,7 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query the +Metric[]+ object available in the step execution. + * expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution. * * The batch process itself will read and process 20 elements from numbers 1 to 20, but only write the odd * elements. Elements from 1 to 10 will be processed in one partition and elements from 11 to 20 in another diff --git a/batch/chunk-optional-processor/src/test/java/org/javaee7/batch/chunk/optional/processor/BatchChunkOptionalProcessorTest.java b/batch/chunk-optional-processor/src/test/java/org/javaee7/batch/chunk/optional/processor/BatchChunkOptionalProcessorTest.java index 3a689bcc6..8569a7f3e 100644 --- a/batch/chunk-optional-processor/src/test/java/org/javaee7/batch/chunk/optional/processor/BatchChunkOptionalProcessorTest.java +++ b/batch/chunk-optional-processor/src/test/java/org/javaee7/batch/chunk/optional/processor/BatchChunkOptionalProcessorTest.java @@ -56,7 +56,7 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query the +Metric[]+ object available in the step execution. + * expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution. * * The batch process itself will read 10 elements from numbers 1 to 10, and write the same elements. Commits are * executed after 3 elements are read. diff --git a/batch/chunk-partition/src/test/java/org/javaee7/batch/sample/chunk/partition/BatchChunkPartitionTest.java b/batch/chunk-partition/src/test/java/org/javaee7/batch/sample/chunk/partition/BatchChunkPartitionTest.java index 6e3ea5c5f..9a3201d49 100644 --- a/batch/chunk-partition/src/test/java/org/javaee7/batch/sample/chunk/partition/BatchChunkPartitionTest.java +++ b/batch/chunk-partition/src/test/java/org/javaee7/batch/sample/chunk/partition/BatchChunkPartitionTest.java @@ -72,7 +72,7 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query the +Metric[]+ object available in the step execution. + * expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution. * * The batch process itself will read and process 20 elements from numbers 1 to 20, but only write the odd * elements. Elements from 1 to 10 will be processed in one partition and elements from 11 to 20 in another diff --git a/batch/chunk-simple-nobeans/src/test/java/org/javaee7/batch/samples/chunk/simple/nobeans/BatchChunkSimpleNoBeansTest.java b/batch/chunk-simple-nobeans/src/test/java/org/javaee7/batch/samples/chunk/simple/nobeans/BatchChunkSimpleNoBeansTest.java index 91eab7f2a..2ba5f6787 100644 --- a/batch/chunk-simple-nobeans/src/test/java/org/javaee7/batch/samples/chunk/simple/nobeans/BatchChunkSimpleNoBeansTest.java +++ b/batch/chunk-simple-nobeans/src/test/java/org/javaee7/batch/samples/chunk/simple/nobeans/BatchChunkSimpleNoBeansTest.java @@ -40,7 +40,7 @@ public class BatchChunkSimpleNoBeansTest { * * The +myJob.xml+ file is needed for running the batch definition. This sample is also missing the +beans.xml+ for * CDI discovery, since for Java EE 7 this file is now optional, but you need to annotated batch dependent beans - * with +@Dependent+. + * with +javax.enterprise.context.Dependent+. */ @Deployment public static WebArchive createDeployment() { @@ -54,7 +54,7 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query the +Metric[]+ object available in the step execution. + * expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution. * * The batch process itself will read and process 10 elements from numbers 1 to 10, but only write the odd * elements. Commits are executed after 3 elements are read. diff --git a/batch/chunk-simple/src/test/java/org/javaee7/batch/chunk/simple/ChunkSimpleTest.java b/batch/chunk-simple/src/test/java/org/javaee7/batch/chunk/simple/ChunkSimpleTest.java index f8d126ae3..4a9c1987e 100644 --- a/batch/chunk-simple/src/test/java/org/javaee7/batch/chunk/simple/ChunkSimpleTest.java +++ b/batch/chunk-simple/src/test/java/org/javaee7/batch/chunk/simple/ChunkSimpleTest.java @@ -55,7 +55,7 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query the +Metric[]+ object available in the step execution. + * expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution. * * The batch process itself will read and process 10 elements from numbers 1 to 10, but only write the odd * elements. Commits are executed after 3 elements are read. diff --git a/batch/decision/src/test/java/org/javaee7/batch/decision/BatchDecisionTest.java b/batch/decision/src/test/java/org/javaee7/batch/decision/BatchDecisionTest.java index f736819e2..ed676fec7 100644 --- a/batch/decision/src/test/java/org/javaee7/batch/decision/BatchDecisionTest.java +++ b/batch/decision/src/test/java/org/javaee7/batch/decision/BatchDecisionTest.java @@ -62,8 +62,8 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query +JobOperator#getStepExecutions+ and the +Metric[]+ object available in the - * step execution. + * expected behaviour we need to query +javax.batch.operations.JobOperator#getStepExecutions+ and the + * +javax.batch.runtime.Metric+ object available in the step execution. * * @throws Exception an exception if the batch could not complete successfully. */ diff --git a/batch/flow/src/test/java/org/javaee7/batch/flow/BatchFlowTest.java b/batch/flow/src/test/java/org/javaee7/batch/flow/BatchFlowTest.java index 85dfa3278..9dc29427d 100644 --- a/batch/flow/src/test/java/org/javaee7/batch/flow/BatchFlowTest.java +++ b/batch/flow/src/test/java/org/javaee7/batch/flow/BatchFlowTest.java @@ -58,8 +58,8 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query +JobOperator#getStepExecutions+ and the +Metric[]+ object available in the - * step execution. + * expected behaviour we need to query +javax.batch.operations.JobOperator#getStepExecutions+ and the + * +javax.batch.runtime.Metric+ object available in the step execution. * * @throws Exception an exception if the batch could not complete successfully. */ diff --git a/batch/multiple-steps/src/test/java/org/javaee7/batch/multiple/steps/BatchMultipleStepsTest.java b/batch/multiple-steps/src/test/java/org/javaee7/batch/multiple/steps/BatchMultipleStepsTest.java index 5818a69b4..4294df487 100644 --- a/batch/multiple-steps/src/test/java/org/javaee7/batch/multiple/steps/BatchMultipleStepsTest.java +++ b/batch/multiple-steps/src/test/java/org/javaee7/batch/multiple/steps/BatchMultipleStepsTest.java @@ -56,8 +56,8 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query +JobOperator#getStepExecutions+ and the +Metric[]+ object available in the - * step execution. + * expected behaviour we need to query +javax.batch.operations.JobOperator#getStepExecutions+ and the + * +javax.batch.runtime.Metric+ object available in the step execution. * * @throws Exception an exception if the batch could not complete successfully. */ diff --git a/batch/split/src/test/java/org/javaee7/batch/split/BatchSplitTest.java b/batch/split/src/test/java/org/javaee7/batch/split/BatchSplitTest.java index 808baea89..1e14d46b6 100644 --- a/batch/split/src/test/java/org/javaee7/batch/split/BatchSplitTest.java +++ b/batch/split/src/test/java/org/javaee7/batch/split/BatchSplitTest.java @@ -61,7 +61,7 @@ public static WebArchive createDeployment() { /** * In the test, we're just going to invoke the batch execution and wait for completion. To validate the test - * expected behaviour we need to query +JobOperator#getStepExecutions+. + * expected behaviour we need to query +javax.batch.operations.JobOperator#getStepExecutions+. * * @throws Exception an exception if the batch could not complete successfully. */