File tree Expand file tree Collapse file tree 3 files changed +1555
-2
lines changed
java/com/uber/cadence/samples/replaytests Expand file tree Collapse file tree 3 files changed +1555
-2
lines changed Original file line number Diff line number Diff line change 1515 * permissions and limitations under the License.
1616 */
1717
18- package com .uber .cadence .samples .hello ;
18+ package com .uber .cadence .samples .replaytests ;
1919
20+ import com .uber .cadence .samples .hello .HelloActivity ;
21+ import com .uber .cadence .samples .hello .HelloPeriodic ;
2022import com .uber .cadence .testing .WorkflowReplayer ;
2123import org .junit .Test ;
2224
2830// Or from Cadence Web UI. (You may need to put history file in resources folder; and change
2931// workflowType in the first event of history).
3032public class HelloActivityReplayTest {
33+
34+ // simple replayer test which checks the current workflow execution with the definition: should
35+ // pass
3136 @ Test
3237 public void testReplay () throws Exception {
3338 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 );
3547 }
3648}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments