File tree 3 files changed +1555
-2
lines changed
java/com/uber/cadence/samples/replaytests
3 files changed +1555
-2
lines changed Original file line number Diff line number Diff line change 15
15
* permissions and limitations under the License.
16
16
*/
17
17
18
- package com .uber .cadence .samples .hello ;
18
+ package com .uber .cadence .samples .replaytests ;
19
19
20
+ import com .uber .cadence .samples .hello .HelloActivity ;
21
+ import com .uber .cadence .samples .hello .HelloPeriodic ;
20
22
import com .uber .cadence .testing .WorkflowReplayer ;
21
23
import org .junit .Test ;
22
24
28
30
// Or from Cadence Web UI. (You may need to put history file in resources folder; and change
29
31
// workflowType in the first event of history).
30
32
public class HelloActivityReplayTest {
33
+
34
+ // simple replayer test which checks the current workflow execution with the definition: should
35
+ // pass
31
36
@ Test
32
37
public void testReplay () throws Exception {
33
38
WorkflowReplayer .replayWorkflowExecutionFromResource (
34
- "HelloActivity.json" , HelloActivity .GreetingWorkflowImpl .class );
39
+ "replaytests/HelloActivity.json" , HelloActivity .GreetingWorkflowImpl .class );
40
+ }
41
+
42
+ // continue-as-new case for replayer tests
43
+ @ Test
44
+ public void testReplay_continueAsNew () throws Exception {
45
+ WorkflowReplayer .replayWorkflowExecutionFromResource (
46
+ "replaytests/HelloPeriodic.json" , HelloPeriodic .GreetingWorkflowImpl .class );
35
47
}
36
48
}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments